summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-01-05 16:45:40 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-06 20:42:45 (GMT)
commitd49e168e1b32ac7d3ee0a4a52791d28a52d8f615 (patch)
treee9f9c4f956182468965037481cb5dbc803b72151 /Modules
parent353318cc53b87f647141e8d12e79bd4b20be489b (diff)
downloadCMake-d49e168e1b32ac7d3ee0a4a52791d28a52d8f615.zip
CMake-d49e168e1b32ac7d3ee0a4a52791d28a52d8f615.tar.gz
CMake-d49e168e1b32ac7d3ee0a4a52791d28a52d8f615.tar.bz2
Ninja: Do not use cmcldeps for RC on non-Windows hosts
The `cmcldeps` executable is only built on Windows. If running MSVC on a different OS (with various compatibility wrapping), don't try to use `cmcldeps`, as the executable doesn't exist. Fixes: #21760
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Windows-MSVC.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake
index 7d602c3..435d224 100644
--- a/Modules/Platform/Windows-MSVC.cmake
+++ b/Modules/Platform/Windows-MSVC.cmake
@@ -478,7 +478,7 @@ macro(__windows_compiler_msvc_enable_rc flags)
endif()
enable_language(RC)
- if(NOT DEFINED CMAKE_NINJA_CMCLDEPS_RC)
+ if(NOT DEFINED CMAKE_NINJA_CMCLDEPS_RC AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(CMAKE_NINJA_CMCLDEPS_RC 1)
endif()
endmacro()