diff options
author | Brad King <brad.king@kitware.com> | 2008-01-15 15:49:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-15 15:49:22 (GMT) |
commit | da335fbd00462b3e6dbaece2ca34328262ed7614 (patch) | |
tree | fd99e3c708f7f90d8f33d9514929c882f4c1981a /Source | |
parent | 1ab0b18ea0745617e3bbf2c53259ee0bdf8ebffd (diff) | |
download | CMake-da335fbd00462b3e6dbaece2ca34328262ed7614.zip CMake-da335fbd00462b3e6dbaece2ca34328262ed7614.tar.gz CMake-da335fbd00462b3e6dbaece2ca34328262ed7614.tar.bz2 |
ENH: Add explicit documentation entry for configuration-specific <CONFIG>_COMPILE_DEFINITIONS.
Diffstat (limited to 'Source')
-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 " |