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:
Brad King
2026-08-05 14:20:43 -04:00
parent 362f4ec53a
commit 835dfdfbac

View File

@@ -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()