remove useless POLICY setting

This commit is contained in:
Sébastien Loriot 2021-11-09 10:19:14 +01:00
parent 58181afcdb
commit 262a04cef2
13 changed files with 0 additions and 92 deletions

View File

@ -4,10 +4,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(CGALimageIO_Examples)
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
find_package(CGAL REQUIRED COMPONENTS ImageIO)
if(CGAL_ImageIO_FOUND)

View File

@ -4,10 +4,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(CGAL_ImageIO_Tests)
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
find_package(CGAL REQUIRED COMPONENTS ImageIO)
if(WITH_CGAL_ImageIO)

View File

@ -4,15 +4,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Linear_cell_complex_Examples)
if(NOT POLICY CMP0070 AND POLICY CMP0053)
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
cmake_policy(SET CMP0053 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
# For Gprof.

View File

@ -5,11 +5,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project( Mesh_3_Tests )
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
find_package(CGAL QUIET COMPONENTS ImageIO)
if ( CGAL_FOUND )

View File

@ -4,10 +4,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Periodic_3_mesh_3_Examples)
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
# CGAL and its components
find_package(CGAL REQUIRED COMPONENTS ImageIO)

View File

@ -4,10 +4,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Periodic_3_mesh_3_Tests)
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
find_package(CGAL REQUIRED COMPONENTS ImageIO)
# Use Eigen

View File

@ -4,15 +4,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Polyhedron_Examples)
if(NOT POLICY CMP0070 AND POLICY CMP0053)
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
cmake_policy(SET CMP0053 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
# create a target per cppfile

View File

@ -9,19 +9,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Surface_mesh_Examples)
if(POLICY CMP0053)
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
if(NOT POLICY CMP0070)
cmake_policy(SET CMP0053 OLD)
else()
cmake_policy(SET CMP0053 NEW)
endif()
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
#CGAL_Qt5 is needed for the drawing.
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)

View File

@ -1,15 +1,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Surface_mesh_topology_Examples)
if(NOT POLICY CMP0070 AND POLICY CMP0053)
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
cmake_policy(SET CMP0053 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
# add_definitions(-DCGAL_TRACE_PATH_TESTS)

View File

@ -1,15 +1,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Surface_mesh_topology_Tests)
if(NOT POLICY CMP0070 AND POLICY CMP0053)
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
cmake_policy(SET CMP0053 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
# add_definitions(-DCGAL_TRACE_PATH_TESTS)

View File

@ -3,10 +3,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Surface_mesher_Examples)
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
find_package(CGAL REQUIRED COMPONENTS ImageIO)
if(CGAL_ImageIO_FOUND)

View File

@ -4,15 +4,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Triangulation_2_Examples)
if(NOT POLICY CMP0070 AND POLICY CMP0053)
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
cmake_policy(SET CMP0053 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
# create a target per cppfile

View File

@ -1,15 +1,6 @@
cmake_minimum_required(VERSION 3.1...3.20)
project(Triangulation_3_Examples)
if(NOT POLICY CMP0070 AND POLICY CMP0053)
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
cmake_policy(SET CMP0053 OLD)
endif()
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
include_directories(BEFORE "../../include")