summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Wang <wbsecg1@gmail.com>2020-03-27 07:46:39 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-27 12:54:58 (GMT)
commit4bef0e64500c46a6adbc21f838f5b6ba9deeaced (patch)
treebe418bc36cf23bb66c77b5668b8b81e94c06acf7
parent2fe8ea555e75c3bd66f285c22bb7be342f5b939f (diff)
downloadCMake-4bef0e64500c46a6adbc21f838f5b6ba9deeaced.zip
CMake-4bef0e64500c46a6adbc21f838f5b6ba9deeaced.tar.gz
CMake-4bef0e64500c46a6adbc21f838f5b6ba9deeaced.tar.bz2
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`.
-rw-r--r--Modules/Platform/Windows-Clang.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake
index c08bb41..96c0791 100644
--- a/Modules/Platform/Windows-Clang.cmake
+++ b/Modules/Platform/Windows-Clang.cmake
@@ -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)