Skip to content

Commit

Permalink
Fix #7074 by bumping the required CMake version past 3.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nOOb3167 committed Feb 24, 2018
1 parent 4118e15 commit 388bfb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
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 388bfb0

Please sign in to comment.