diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2018-03-27 01:57:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-28 12:38:00 (GMT) |
commit | 7b173a29332af37eb285d8cf5924a44be3a944dd (patch) | |
tree | 8098211587e62bc39d91f6c0fbe0b03f7c055d8e /Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake | |
parent | 6792c7787aedc0fb2a32b6ca563917f7447f2e80 (diff) | |
download | CMake-7b173a29332af37eb285d8cf5924a44be3a944dd.zip CMake-7b173a29332af37eb285d8cf5924a44be3a944dd.tar.gz CMake-7b173a29332af37eb285d8cf5924a44be3a944dd.tar.bz2 |
genex: Add TARGET_NAME_IF_EXISTS expression
Define `$<TARGET_NAME_IF_EXISTS:tgt>` to mean `tgt` if the target
exists and otherwise an empty string.
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake index f9a5cae..5636d00 100644 --- a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake +++ b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake @@ -38,6 +38,10 @@ run_cmake(TARGET_EXISTS-no-arg) run_cmake(TARGET_EXISTS-empty-arg) run_cmake(TARGET_EXISTS) run_cmake(TARGET_EXISTS-not-a-target) +run_cmake(TARGET_NAME_IF_EXISTS-no-arg) +run_cmake(TARGET_NAME_IF_EXISTS-empty-arg) +run_cmake(TARGET_NAME_IF_EXISTS) +run_cmake(TARGET_NAME_IF_EXISTS-not-a-target) run_cmake(ImportedTarget-TARGET_BUNDLE_DIR) run_cmake(ImportedTarget-TARGET_BUNDLE_CONTENT_DIR) |