[CMake] Default source properties and get_property plus LANGUAGE source propery has no effect.

Andreas Pakulat apaku at gmx.de
Fri Mar 4 08:06:36 EST 2011


On 04.03.11 14:56:14, Orcun Gokbulut wrote:
> While I was investigating the problem I came across another problem; I can
> not read default values of a source property. In more generic terms value of
> a source file property (I don't known whether this applies to
> target/directory/global properties) is not defined unless it is defined by a
> set command. However, those properties has build in default values that are
> also overwritten by set functions. So there is no way of getting default
> values of these properties.

No they don't. Source files get the 'default' values from their target,
directory or global cmake flags. So thats the order in which you have to
check for existing values. The cmake manual has a list of all properties
and usually also cross-references between the 4 types.

Andreas



More information about the CMake mailing list