Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix CMake error (#7074) by bumping the required CMake version past 3.…
…8.1 (#7075)
  • Loading branch information
nOOb3167 authored and SmallJoker committed Feb 25, 2018
1 parent 66372e7 commit 88a7160
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit 88a7160

Please sign in to comment.