From da335fbd00462b3e6dbaece2ca34328262ed7614 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 15 Jan 2008 10:49:22 -0500 Subject: [PATCH] ENH: Add explicit documentation entry for configuration-specific _COMPILE_DEFINITIONS. --- Source/cmSourceFile.cxx | 9 +++++++++ Source/cmTarget.cxx | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx index c9021119d..8905b0cc0 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 + ("_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 016aa1c8c..eaf8f7097 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -94,6 +94,11 @@ void cmTarget::DefineProperties(cmake *cm) "has improved escape support. Instead consider defining the macro " "in a (configured) header file. Then report the limitation."); + cm->DefineProperty + ("_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.",