mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
CMakeDetermineCompilerId: use _ARG1 to query the clang resource dir
Other core queries do this, so do it here too.
This commit is contained in:
@@ -292,7 +292,9 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
|
||||
"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
|
||||
|
||||
Reference in New Issue
Block a user