]> source.dussan.org Git - tigervnc.git/commitdiff
Check CMake version for MinGW RC file handling 322/head
authorJoel Teichroeb <joel@teichroeb.net>
Wed, 13 Jul 2016 03:52:04 +0000 (20:52 -0700)
committerJoel Teichroeb <joel@teichroeb.net>
Wed, 13 Jul 2016 03:52:04 +0000 (20:52 -0700)
CMakeLists.txt

index 724aa939a6b52a2019dc7b024bf326a8b97907af..a9e7f4e01e59256fc0396bdf3b3ac1e7dcdef2bd 100644 (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()