Merge topic 'cxxmodules-fileset-cache-fullpath' into release-3.28
0a18f9baad cmGeneratorTarget: collapse paths before querying the fileset cache
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9286
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index dd2bce2..85c555a 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -292,7 +292,9 @@
"x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xClang" AND
"x${CMAKE_${lang}_COMPILER_FRONTEND_VARIANT}" STREQUAL "xGNU")
execute_process(
- COMMAND "${CMAKE_${lang}_COMPILER}" -print-resource-dir
+ COMMAND "${CMAKE_${lang}_COMPILER}"
+ ${CMAKE_${lang}_COMPILER_ID_ARG1}
+ -print-resource-dir
OUTPUT_VARIABLE _clang_resource_dir_out
ERROR_VARIABLE _clang_resource_dir_err
RESULT_VARIABLE _clang_resource_dir_res