summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/LinkerLauncher/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-02-02 16:40:01 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-02-02 16:58:56 (GMT)
commit33e27f6ca6b2ba1c92b5d428daf8eee769424853 (patch)
tree13731ac45c3dca8913f89604e419121c36ac2431 /Tests/RunCMake/LinkerLauncher/RunCMakeTest.cmake
parent84ada0b0c966413a9083fb77a2f6421c0d959666 (diff)
downloadCMake-33e27f6ca6b2ba1c92b5d428daf8eee769424853.zip
CMake-33e27f6ca6b2ba1c92b5d428daf8eee769424853.tar.gz
CMake-33e27f6ca6b2ba1c92b5d428daf8eee769424853.tar.bz2
<LANG>_LINKER_LAUNCHER: Allow generator expressions
Diffstat (limited to 'Tests/RunCMake/LinkerLauncher/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/LinkerLauncher/RunCMakeTest.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/LinkerLauncher/RunCMakeTest.cmake b/Tests/RunCMake/LinkerLauncher/RunCMakeTest.cmake
index 8f2bf63..025f367 100644
--- a/Tests/RunCMake/LinkerLauncher/RunCMakeTest.cmake
+++ b/Tests/RunCMake/LinkerLauncher/RunCMakeTest.cmake
@@ -17,7 +17,8 @@ endfunction()
function(run_linker_launcher_env lang)
string(REGEX REPLACE "-.*" "" core_lang "${lang}")
- set(ENV{CMAKE_${core_lang}_LINKER_LAUNCHER} "${CMAKE_COMMAND};-E;env;USED_LAUNCHER=1")
+ # Use the noop genexp $<PATH:...> genexp to validate genexp support.
+ set(ENV{CMAKE_${core_lang}_LINKER_LAUNCHER} "$<PATH:CMAKE_PATH,${CMAKE_COMMAND}>;-E;env;USED_LAUNCHER=1;TARGET_NAME=$<TARGET_PROPERTY:NAME>;LANGUAGE=$<LINK_LANGUAGE>")
run_linker_launcher(${lang})
unset(ENV{CMAKE_${core_lang}_LINKER_LAUNCHER})
endfunction()