Fix CMake error (#7074) by bumping the required CMake version past 3.8.1 (#7075)
authornOOb3167 <nOOb3167@gmail.com>
Sun, 25 Feb 2018 11:26:41 +0000 (12:26 +0100)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sun, 25 Feb 2018 11:26:41 +0000 (12:26 +0100)
src/CMakeLists.txt

index f38022c5db6fc92d7e202a5f2c2d99d4e713f263..f1445d2d9dd34b3c3f71f38665edd642da0769ff 100644 (file)
@@ -530,7 +530,9 @@ set(server_SRCS
 )
 list(SORT server_SRCS)
 
-if ((CMAKE_VERSION VERSION_GREATER 3.8) OR (CMAKE_VERSION VERSION_EQUAL 3.8))
+# Avoid source_group on broken CMake version.
+# see issue #7074 #7075
+if (CMAKE_VERSION VERSION_GREATER 3.8.1)
        source_group(TREE ${PROJECT_SOURCE_DIR} PREFIX "Source Files" FILES ${client_SRCS})
        source_group(TREE ${PROJECT_SOURCE_DIR} PREFIX "Source Files" FILES ${server_SRCS})
 endif()