mirror of
https://github.com/reactos/CMake.git
synced 2024-11-23 19:49:51 +00:00
Merge topic 'llvm_rc_pp'
4bef0e6450
llvm-rc: Enable preprocessing if CMAKE_RC_COMPILER_INIT is an absolute path
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4535
This commit is contained in:
commit
0188df97e8
@ -134,7 +134,7 @@ if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
|
|||||||
include(Platform/Windows-MSVC)
|
include(Platform/Windows-MSVC)
|
||||||
|
|
||||||
# Feed the preprocessed rc file to llvm-rc
|
# 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)
|
if(DEFINED CMAKE_C_COMPILER_ID)
|
||||||
set(CMAKE_RC_PREPROCESSOR CMAKE_C_COMPILER)
|
set(CMAKE_RC_PREPROCESSOR CMAKE_C_COMPILER)
|
||||||
elseif(DEFINED CMAKE_CXX_COMPILER_ID)
|
elseif(DEFINED CMAKE_CXX_COMPILER_ID)
|
||||||
|
Loading…
Reference in New Issue
Block a user