diff options
author | nOOb3167 <nOOb3167@gmail.com> | 2018-02-25 12:26:41 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-02-25 12:26:41 +0100 |
commit | 88a7160ad8c303e7c1cb7c3141583fab131b2dda (patch) | |
tree | a29d00ac9b19e7fc5397d7ef2dbb961e25a7478e /src | |
parent | 66372e75d9b584fbb3b3fbce0de572585dd86dca (diff) | |
download | minetest-88a7160ad8c303e7c1cb7c3141583fab131b2dda.tar.gz minetest-88a7160ad8c303e7c1cb7c3141583fab131b2dda.tar.bz2 minetest-88a7160ad8c303e7c1cb7c3141583fab131b2dda.zip |
Fix CMake error (#7074) by bumping the required CMake version past 3.8.1 (#7075)
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f38022c5d..f1445d2d9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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() |