Replace the CMP0054 spec by the right cmake_required_version

This commit is contained in:
Maxime Gimeno 2019-04-03 13:14:40 +02:00
parent 22caa66feb
commit ecff35a7e9
6 changed files with 5 additions and 30 deletions

View File

@ -8,10 +8,6 @@ set(CMAKE_AUTOMOC ON)
cmake_minimum_required(VERSION 3.1...3.13)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()

View File

@ -4,11 +4,7 @@
project( Hyperbolic_triangulation_2_Examples )
cmake_minimum_required(VERSION 2.8.10)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
cmake_minimum_required(VERSION 3.1...3.13)
find_package(CGAL QUIET COMPONENTS Core )

View File

@ -4,11 +4,7 @@
project( Hyperbolic_triangulation_2_Tests )
cmake_minimum_required(VERSION 2.8.10)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
cmake_minimum_required(VERSION 3.1...3.13)
find_package(CGAL QUIET COMPONENTS Core )

View File

@ -10,17 +10,12 @@ include_directories( ${CMAKE_BINARY_DIR} )
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.1...3.13)
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
find_package(CGAL QUIET COMPONENTS Core Qt5)
include(${CGAL_USE_FILE})

View File

@ -4,11 +4,7 @@
project( Periodic_4_hyperbolic_triangulation_2_Examples )
cmake_minimum_required(VERSION 2.8.10)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
cmake_minimum_required(VERSION 3.1...3.13)
find_package(CGAL QUIET COMPONENTS Core )

View File

@ -4,11 +4,7 @@
project( Periodic_4_hyperbolic_triangulation_2_Tests )
cmake_minimum_required(VERSION 2.8.10)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
cmake_minimum_required(VERSION 3.1...3.13)
find_package(CGAL QUIET COMPONENTS Core )