diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2022-08-26 07:15:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-08-30 21:26:25 (GMT) |
commit | 36400e9dc1248f34b6cdfc56554dfb9e71a36ea6 (patch) | |
tree | b16d95efe2704c9b6c76b166ff02626820092a4e /Tests/RunCMake/CompilerLauncher | |
parent | 60a1ccbd6a913d09d7c0a3f2b104e60699718e07 (diff) | |
download | CMake-36400e9dc1248f34b6cdfc56554dfb9e71a36ea6.zip CMake-36400e9dc1248f34b6cdfc56554dfb9e71a36ea6.tar.gz CMake-36400e9dc1248f34b6cdfc56554dfb9e71a36ea6.tar.bz2 |
COMPILER_LAUNCHER: Add support for generator expressions
Fixes: #23441
Diffstat (limited to 'Tests/RunCMake/CompilerLauncher')
-rw-r--r-- | Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake b/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake index 84d0479..e6a2605 100644 --- a/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake +++ b/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake @@ -17,7 +17,8 @@ endfunction() function(run_compiler_launcher_env lang) string(REGEX REPLACE "-.*" "" core_lang "${lang}") - set(ENV{CMAKE_${core_lang}_COMPILER_LAUNCHER} "${CMAKE_COMMAND};-E;env;USED_LAUNCHER=1") + # Use the noop genexp $<PATH:...> genexp to validate genexp support. + set(ENV{CMAKE_${core_lang}_COMPILER_LAUNCHER} "$<PATH:CMAKE_PATH,${CMAKE_COMMAND}>;-E;env;USED_LAUNCHER=1") run_compiler_launcher(${lang}) unset(ENV{CMAKE_${core_lang}_COMPILER_LAUNCHER}) endfunction() |