summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-29 16:31:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-09-29 16:42:56 (GMT)
commit9d462b22a3ae0e4e59f090cec01522abc58e8d8c (patch)
treec45b7a40b8a3a8a51cd608b55e71c285f122b490
parentdaf88c36984894d46a7e8379d4d80fbc69e5198a (diff)
downloadCMake-9d462b22a3ae0e4e59f090cec01522abc58e8d8c.zip
CMake-9d462b22a3ae0e4e59f090cec01522abc58e8d8c.tar.gz
CMake-9d462b22a3ae0e4e59f090cec01522abc58e8d8c.tar.bz2
Document that generator expressions can be used in target properties.
-rw-r--r--Source/cmTarget.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 532d482..0a97910 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -16,6 +16,7 @@
#include "cmLocalGenerator.h"
#include "cmGlobalGenerator.h"
#include "cmDocumentCompileDefinitions.h"
+#include "cmDocumentGeneratorExpressions.h"
#include "cmDocumentLocationUndefined.h"
#include "cmListFileCache.h"
#include "cmGeneratorExpression.h"
@@ -204,6 +205,9 @@ void cmTarget::DefineProperties(cmake *cm)
"are not supported by the native build tool. "
"The VS6 IDE does not support definition values with spaces "
"(but NMake does).\n"
+ "Contents of COMPILE_DEFINITIONS may use \"generator expressions\" with "
+ "the syntax \"$<...>\". "
+ CM_DOCUMENT_COMMAND_GENERATOR_EXPRESSIONS
CM_DOCUMENT_COMPILE_DEFINITIONS_DISCLAIMER);
cm->DefineProperty
@@ -497,8 +501,11 @@ void cmTarget::DefineProperties(cmake *cm)
"to the include_directories command."
"\n"
"The target property values are used by the generators to set "
- "the include paths for the compiler. "
- "See also the include_directories command.");
+ "the include paths for the compiler. "
+ "See also the include_directories command.\n"
+ "Contents of INCLUDE_DIRECTORIES may use \"generator expressions\" with "
+ "the syntax \"$<...>\". "
+ CM_DOCUMENT_COMMAND_GENERATOR_EXPRESSIONS);
cm->DefineProperty
("INSTALL_NAME_DIR", cmProperty::TARGET,