From 7008fc234b189d5e3068fb8b6fca9ed76df600f5 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 24 Feb 2024 16:54:09 -0500 Subject: CMakeDetermineCompilerId: use `_ARG1` to query the clang resource dir Other core queries do this, so do it here too. --- Modules/CMakeDetermineCompilerId.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ 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 -- cgit v0.12