From: Joel Teichroeb Date: Wed, 13 Jul 2016 03:52:04 +0000 (-0700) Subject: Check CMake version for MinGW RC file handling X-Git-Tag: v1.7.90~96^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec7120134852c13bf72cec83da63e5fda415f371;p=tigervnc.git Check CMake version for MinGW RC file handling --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 724aa939..a9e7f4e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()