From d49e168e1b32ac7d3ee0a4a52791d28a52d8f615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 5 Jan 2022 18:45:40 +0200 Subject: 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 --- Modules/Platform/Windows-MSVC.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12