mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-08 16:50:48 +00:00
OrangeC: Fix compiling Windows Resources with only CXX enabled
Fix commit 402d72b6c0 (OrangeC: Add support for compiling Windows
Resources, 2026-03-24, v4.4.0-rc1~444^2~1) to work for both C and CXX.
Inspired-by: Arha Gatram <agatram@nvidia.com>
This commit is contained in:
@@ -8,7 +8,7 @@ macro(__windows_compiler_orangec lang)
|
||||
set(CMAKE_${lang}_CREATE_WIN32_EXE "-Wg")
|
||||
set(CMAKE_${lang}_CREATE_CONSOLE_EXE "-Wc")
|
||||
|
||||
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "7.0")
|
||||
if(CMAKE_${lang}_COMPILER_VERSION VERSION_GREATER_EQUAL "7.0")
|
||||
if(NOT CMAKE_RC_COMPILER_INIT)
|
||||
set(CMAKE_RC_COMPILER_INIT orc)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user