mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
llvm-rc: Enable preprocessing if CMAKE_RC_COMPILER_INIT is an absolute path
`CMAKE_RC_COMPILER_INIT` and `CMAKE_RC_COMPILER` can be set by user, for example `llvm-rc-10` and `D:\LLVM\bin\llvm-rc.exe`.
This commit is contained in:
@@ -134,7 +134,7 @@ if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
|
||||
include(Platform/Windows-MSVC)
|
||||
|
||||
# Feed the preprocessed rc file to llvm-rc
|
||||
if(CMAKE_RC_COMPILER_INIT STREQUAL "llvm-rc")
|
||||
if(CMAKE_RC_COMPILER_INIT MATCHES "llvm-rc")
|
||||
if(DEFINED CMAKE_C_COMPILER_ID)
|
||||
set(CMAKE_RC_PREPROCESSOR CMAKE_C_COMPILER)
|
||||
elseif(DEFINED CMAKE_CXX_COMPILER_ID)
|
||||
|
||||
Reference in New Issue
Block a user