mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
CMake: simplify checking if policy can be set
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
parent
9b5f6e16e1
commit
69508d7123
1 changed files with 2 additions and 3 deletions
|
@ -6,9 +6,8 @@
|
||||||
project(Subsurface)
|
project(Subsurface)
|
||||||
cmake_minimum_required(VERSION 2.8.11)
|
cmake_minimum_required(VERSION 2.8.11)
|
||||||
|
|
||||||
# don't process generated files - this is new in 3.10 - but
|
# don't process generated files - this is new in 3.10
|
||||||
# VERSION_GREATER_EQUAL did get added until 3.7
|
if (POLICY CMP0071)
|
||||||
if(${CMAKE_VERSION} VERSION_EQUAL "3.10.0" OR ${CMAKE_VERSION} VERSION_GREATER "3.10.0")
|
|
||||||
cmake_policy(SET CMP0071 OLD)
|
cmake_policy(SET CMP0071 OLD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue