mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix build for cmake before 3.10
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
726e231d64
commit
f067d3b5d6
1 changed files with 5 additions and 2 deletions
|
@ -6,8 +6,11 @@
|
||||||
project(Subsurface)
|
project(Subsurface)
|
||||||
cmake_minimum_required(VERSION 2.8.11)
|
cmake_minimum_required(VERSION 2.8.11)
|
||||||
|
|
||||||
# don't process generated files
|
# don't process generated files - this is new in 3.10 - but
|
||||||
cmake_policy(SET CMP0071 OLD)
|
# VERSION_GREATER_EQUAL did get added until 3.7
|
||||||
|
if(${CMAKE_VERSION} VERSION_EQUAL "3.10.0" OR ${CMAKE_VERSION} VERSION_GREATER "3.10.0")
|
||||||
|
cmake_policy(SET CMP0071 OLD)
|
||||||
|
endif()
|
||||||
|
|
||||||
# global settings
|
# global settings
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue