summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentGeneratorExpressions.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-12 02:20:42 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-28 12:49:21 (GMT)
commite028381bf1c5d1fdf464ed835a549be4a0569adb (patch)
tree4ef5222eba72b5eb1be25b392a3725271bb78644 /Source/cmDocumentGeneratorExpressions.h
parentb8e61d687abfacf1d5ed3b10cfe20315a344620c (diff)
downloadCMake-e028381bf1c5d1fdf464ed835a549be4a0569adb.zip
CMake-e028381bf1c5d1fdf464ed835a549be4a0569adb.tar.gz
CMake-e028381bf1c5d1fdf464ed835a549be4a0569adb.tar.bz2
Extend the generator expression language with more logic.
Generator expressions for comparing strings, evaluating strings as booleans, and for creating literal right-angle-brackets and commas are added. Those may be needed in some cases where they appear in literals.
Diffstat (limited to 'Source/cmDocumentGeneratorExpressions.h')
-rw-r--r--Source/cmDocumentGeneratorExpressions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmDocumentGeneratorExpressions.h b/Source/cmDocumentGeneratorExpressions.h
index 74c673a..5622da0 100644
--- a/Source/cmDocumentGeneratorExpressions.h
+++ b/Source/cmDocumentGeneratorExpressions.h
@@ -20,6 +20,12 @@
" $<1:...> = content of \"...\"\n" \
" $<CONFIG:cfg> = '1' if config is \"cfg\", else '0'\n" \
" $<CONFIGURATION> = configuration name\n" \
+ " $<BOOL:...> = '1' if the '...' is true, else '0'\n" \
+ " $<STREQUAL:a,b> = '1' if a is STREQUAL b, else '0'\n" \
+ " $<ANGLE-R> = A literal '>'. Used to compare " \
+ "strings which contain a '>' for example.\n" \
+ " $<COMMA> = A literal ','. Used to compare " \
+ "strings which contain a ',' for example.\n" \
" $<TARGET_FILE:tgt> = main file (.exe, .so.1.2, .a)\n" \
" $<TARGET_LINKER_FILE:tgt> = file used to link (.a, .lib, .so)\n" \
" $<TARGET_SONAME_FILE:tgt> = file with soname (.so.3)\n" \