Only define the CMAKE_RC_COMPILER when it isn't defined in the CMakeLists.txt file.

This commit is contained in:
Username404 2021-08-10 12:22:28 +02:00
parent 404b580ec3
commit 7a23e31dea
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ if (MINGW OR MSVC)
if (UNIX)
SET(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
if (NOT DEFINED CMAKE_RC_COMPILER)
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
endif()
endif()
ENABLE_LANGUAGE(RC)
endif()