Fix CMP0071 warning.

This commit is contained in:
Maxime Gimeno 2017-08-02 11:40:59 +02:00
parent 8e82a61ba5
commit 831f0239cb
7 changed files with 24 additions and 0 deletions

View File

@ -14,6 +14,9 @@ endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
# Include this package's headers first
include_directories( BEFORE ./ ./include ../../include )

View File

@ -14,6 +14,9 @@ endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -16,6 +16,9 @@ endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
## To add expensive tests
# add_definitions("-DCGAL_CHECK_EXPENSIVE")

View File

@ -14,6 +14,9 @@ endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})

View File

@ -3,6 +3,7 @@
project( Polyhedron_Demo )
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
cmake_minimum_required(VERSION 3.1)
@ -12,6 +13,9 @@ endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_generalized_initializers has_cpp11)
if(has_cpp11 LESS 0)

View File

@ -14,6 +14,9 @@ endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
set(PACKAGE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)

View File

@ -5,6 +5,7 @@ project (Triangulation_3_Demo)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
@ -15,6 +16,10 @@ endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL COMPONENTS Qt5)
include(${CGAL_USE_FILE})