summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentGeneratorExpressions.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-26 13:02:49 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-06-26 13:02:49 (GMT)
commitc1631efa0eb0b33680ea73f745379eebf4d573a8 (patch)
treec1ba7e9d8d3d638c3ea3540cdbea891c08a63853 /Source/cmDocumentGeneratorExpressions.h
parent22fbeaa14b5d79bc065b1c3061359c886167cc01 (diff)
parente6055284b347775ae1396725704778af0bfb56c7 (diff)
downloadCMake-c1631efa0eb0b33680ea73f745379eebf4d573a8.zip
CMake-c1631efa0eb0b33680ea73f745379eebf4d573a8.tar.gz
CMake-c1631efa0eb0b33680ea73f745379eebf4d573a8.tar.bz2
Merge topic 'version-compare-genex'
e605528 Add generator expressions for version comparision. 48bb48e De-duplicate version comparison code.
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 12ee9fa..7358a36 100644
--- a/Source/cmDocumentGeneratorExpressions.h
+++ b/Source/cmDocumentGeneratorExpressions.h
@@ -48,6 +48,12 @@
"used.\n" \
" $<CXX_COMPILER_ID:comp> = '1' if the CMake-id of the CXX " \
"compiler matches comp, otherwise '0'.\n" \
+ " $<VERSION_GREATER:v1,v2> = '1' if v1 is a version greater than " \
+ "v2, else '0'.\n" \
+ " $<VERSION_LESS:v1,v2> = '1' if v1 is a version less than v2, " \
+ "else '0'.\n" \
+ " $<VERSION_EQUAL:v1,v2> = '1' if v1 is the same version as v2, " \
+ "else '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" \