Skip to content

Commit

Permalink
Fix CMake error (minetest#7074) by bumping the required CMake version…
Browse files Browse the repository at this point in the history
… past 3.8.1 (minetest#7075)
  • Loading branch information
nOOb3167 authored and minduser00 committed Mar 18, 2018
1 parent 0063de0 commit de3827f
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 de3827f

Please sign in to comment.