summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-02-02 16:37:30 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-02-02 16:37:30 (GMT)
commit84ada0b0c966413a9083fb77a2f6421c0d959666 (patch)
tree40e620fe697fac21dad6a803f5bd473f51be4198 /Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake
parent063913f4866b254d8eccf8402c93adea9ebce031 (diff)
downloadCMake-84ada0b0c966413a9083fb77a2f6421c0d959666.zip
CMake-84ada0b0c966413a9083fb77a2f6421c0d959666.tar.gz
CMake-84ada0b0c966413a9083fb77a2f6421c0d959666.tar.bz2
<LANG>_COMPILER_LAUNCHER: Expand subset of genexes that can be evaluated
Diffstat (limited to 'Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake b/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake
index e6a2605..b051a19 100644
--- a/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CompilerLauncher/RunCMakeTest.cmake
@@ -18,7 +18,7 @@ endfunction()
function(run_compiler_launcher_env lang)
string(REGEX REPLACE "-.*" "" core_lang "${lang}")
# 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")
+ set(ENV{CMAKE_${core_lang}_COMPILER_LAUNCHER} "$<PATH:CMAKE_PATH,${CMAKE_COMMAND}>;-E;env;USED_LAUNCHER=1;TARGET_NAME=$<TARGET_PROPERTY:NAME>;LANGUAGE=$<COMPILE_LANGUAGE>")
run_compiler_launcher(${lang})
unset(ENV{CMAKE_${core_lang}_COMPILER_LAUNCHER})
endfunction()