diff options
-rw-r--r-- | Source/cmSourceFile.cxx | 9 | ||||
-rw-r--r-- | Source/cmTarget.cxx | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx index c902111..8905b0c 100644 --- a/Source/cmSourceFile.cxx +++ b/Source/cmSourceFile.cxx @@ -368,6 +368,15 @@ void cmSourceFile::DefineProperties(cmake *cm) "has improved escape support. Instead consider defining the macro " "in a (configured) header file. Then report the limitation."); + + cm->DefineProperty + ("<CONFIG>_COMPILE_DEFINITIONS", cmProperty::SOURCE_FILE, + "Per-configuration preprocessor definitions on a source file.", + "This is the configuration-specific version of " + "COMPILE_DEFINITIONS. Note that Xcode does not support " + "per-configuration source file flags so this property will " + "be ignored by the Xcode generator."); + cm->DefineProperty ("EXTERNAL_OBJECT", cmProperty::SOURCE_FILE, "If set to true then this is an object file.", diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 016aa1c..eaf8f70 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -95,6 +95,11 @@ void cmTarget::DefineProperties(cmake *cm) "in a (configured) header file. Then report the limitation."); cm->DefineProperty + ("<CONFIG>_COMPILE_DEFINITIONS", cmProperty::TARGET, + "Per-configuration preprocessor definitions on a target.", + "This is the configuration-specific version of COMPILE_DEFINITIONS."); + + cm->DefineProperty ("DEFINE_SYMBOL", cmProperty::TARGET, "Define a symbol when compiling this target's sources.", "DEFINE_SYMBOL sets the name of the preprocessor symbol defined when " |