Browse Source

Check CMake version for MinGW RC file handling

tags/v1.7.90
Joel Teichroeb 7 years ago
parent
commit
ec71201348
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      CMakeLists.txt

+ 3
- 2
CMakeLists.txt View File

@@ -104,8 +104,9 @@ else()
message(STATUS "32-bit build")
endif()

# CMake doesn't properly support resource compilation with MinGW. Boo!
if(MINGW)
# Versions of CMake before 2.8.7 do not properly support resource compilation
# with MinGW. Boo!
if(MINGW AND "${CMAKE_VERSION}" VERSION_LESS "2.8.7")
if(NOT DEFINED RC)
set(CMAKE_RC_COMPILER_INIT windres)
else()

Loading…
Cancel
Save