summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentGeneratorExpressions.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-06-11 08:48:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-06-28 12:32:58 (GMT)
commit47a8db5bcd1907c45552ad267ee8f11427a1c8f2 (patch)
tree9ecf8ed4b0ab060f8805f00d35fa537784078e31 /Source/cmDocumentGeneratorExpressions.h
parentd221eac81261679d3580849218220290fcd122df (diff)
downloadCMake-47a8db5bcd1907c45552ad267ee8f11427a1c8f2.zip
CMake-47a8db5bcd1907c45552ad267ee8f11427a1c8f2.tar.gz
CMake-47a8db5bcd1907c45552ad267ee8f11427a1c8f2.tar.bz2
Add generator expressions for compiler versions.
New generator expressions allow retrieval of the version per language, as well as equality comparison.
Diffstat (limited to 'Source/cmDocumentGeneratorExpressions.h')
-rw-r--r--Source/cmDocumentGeneratorExpressions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmDocumentGeneratorExpressions.h b/Source/cmDocumentGeneratorExpressions.h
index 7358a36..841061c 100644
--- a/Source/cmDocumentGeneratorExpressions.h
+++ b/Source/cmDocumentGeneratorExpressions.h
@@ -54,6 +54,13 @@
"else '0'.\n" \
" $<VERSION_EQUAL:v1,v2> = '1' if v1 is the same version as v2, " \
"else '0'.\n" \
+ " $<C_COMPILER_VERSION> = The version of the C compiler used.\n" \
+ " $<C_COMPILER_VERSION:ver> = '1' if the version of the C " \
+ "compiler matches ver, otherwise '0'.\n" \
+ " $<CXX_COMPILER_VERSION> = The version of the CXX compiler " \
+ "used.\n" \
+ " $<CXX_COMPILER_VERSION:ver> = '1' if the version of the CXX " \
+ "compiler matches ver, otherwise '0'.\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" \