summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/TARGET_LINKER_OUTPUT_NAME-non-valid-target.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-04-03 15:27:39 (GMT)
committerBrad King <brad.king@kitware.com>2019-04-08 11:49:08 (GMT)
commit1889ed923ea8c2dd204ca38b8109efdf1963c578 (patch)
tree85921aa33294bc3b2d488a5ba4ad84882128782b /Tests/RunCMake/GeneratorExpression/TARGET_LINKER_OUTPUT_NAME-non-valid-target.cmake
parent26b6d2aff0076b44fac605de0d3dbfc3f55e64fb (diff)
downloadCMake-1889ed923ea8c2dd204ca38b8109efdf1963c578.zip
CMake-1889ed923ea8c2dd204ca38b8109efdf1963c578.tar.gz
CMake-1889ed923ea8c2dd204ca38b8109efdf1963c578.tar.bz2
Genex: Add capability to retrieve base name for various target artifacts
This new capability is required to solve efficiently issue #18771
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/TARGET_LINKER_OUTPUT_NAME-non-valid-target.cmake')
-rw-r--r--Tests/RunCMake/GeneratorExpression/TARGET_LINKER_OUTPUT_NAME-non-valid-target.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_LINKER_OUTPUT_NAME-non-valid-target.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_LINKER_OUTPUT_NAME-non-valid-target.cmake
new file mode 100644
index 0000000..e1496b4
--- /dev/null
+++ b/Tests/RunCMake/GeneratorExpression/TARGET_LINKER_OUTPUT_NAME-non-valid-target.cmake
@@ -0,0 +1,9 @@
+
+enable_language(C)
+
+add_custom_target(empty)
+
+file(GENERATE
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test.txt"
+ CONTENT "[$<TARGET_LINKER_OUTPUT_NAME:empty>]"
+)