diff --git a/CMakeLists.txt b/CMakeLists.txt index 189a71a..9c79d28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,7 +64,9 @@ if (MINGW OR MSVC) if (UNIX) SET(CMAKE_RC_COMPILE_OBJECT " -O coff -i -o ") - 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()