Skip to content

Commit

Permalink
Check CMake version for MinGW RC file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
klusark committed Jul 13, 2016
1 parent d175da7 commit ec71201
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ec71201

Please sign in to comment.