Fix CMP0054 warning in hyperbolic triangulation demos

This commit is contained in:
Maxime Gimeno 2019-04-03 11:07:13 +02:00
parent 0e8bd4aa96
commit 22caa66feb
6 changed files with 25 additions and 0 deletions

View File

@ -8,6 +8,10 @@ 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

@ -6,6 +6,10 @@ project( Hyperbolic_triangulation_2_Examples )
cmake_minimum_required(VERSION 2.8.10)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )

View File

@ -6,6 +6,10 @@ project( Hyperbolic_triangulation_2_Tests )
cmake_minimum_required(VERSION 2.8.10)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )

View File

@ -16,6 +16,11 @@ 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

@ -6,6 +6,10 @@ project( Periodic_4_hyperbolic_triangulation_2_Examples )
cmake_minimum_required(VERSION 2.8.10)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND AND CGAL_Core_FOUND)

View File

@ -6,6 +6,10 @@ project( Periodic_4_hyperbolic_triangulation_2_Tests )
cmake_minimum_required(VERSION 2.8.10)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND AND CGAL_Core_FOUND )