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
This commit is contained in:
parent
353318cc53
commit
d49e168e1b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user