diff --git a/CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt b/CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt index b84fd71eee7..f4ba6b83e70 100644 --- a/CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt +++ b/CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt @@ -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) diff --git a/CGAL_ImageIO/test/CGAL_ImageIO/CMakeLists.txt b/CGAL_ImageIO/test/CGAL_ImageIO/CMakeLists.txt index 05e0a8addda..70b7e4eccee 100644 --- a/CGAL_ImageIO/test/CGAL_ImageIO/CMakeLists.txt +++ b/CGAL_ImageIO/test/CGAL_ImageIO/CMakeLists.txt @@ -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) diff --git a/Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt b/Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt index 919a067a71d..076aca14051 100644 --- a/Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt +++ b/Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt @@ -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. diff --git a/Mesh_3/test/Mesh_3/CMakeLists.txt b/Mesh_3/test/Mesh_3/CMakeLists.txt index 162ae9aebce..cfa6b909050 100644 --- a/Mesh_3/test/Mesh_3/CMakeLists.txt +++ b/Mesh_3/test/Mesh_3/CMakeLists.txt @@ -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 ) diff --git a/Periodic_3_mesh_3/examples/Periodic_3_mesh_3/CMakeLists.txt b/Periodic_3_mesh_3/examples/Periodic_3_mesh_3/CMakeLists.txt index 16b5057ee9e..7ac71779192 100644 --- a/Periodic_3_mesh_3/examples/Periodic_3_mesh_3/CMakeLists.txt +++ b/Periodic_3_mesh_3/examples/Periodic_3_mesh_3/CMakeLists.txt @@ -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) diff --git a/Periodic_3_mesh_3/test/Periodic_3_mesh_3/CMakeLists.txt b/Periodic_3_mesh_3/test/Periodic_3_mesh_3/CMakeLists.txt index 6602cb47956..d1487ccf6fb 100644 --- a/Periodic_3_mesh_3/test/Periodic_3_mesh_3/CMakeLists.txt +++ b/Periodic_3_mesh_3/test/Periodic_3_mesh_3/CMakeLists.txt @@ -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 diff --git a/Polyhedron/examples/Polyhedron/CMakeLists.txt b/Polyhedron/examples/Polyhedron/CMakeLists.txt index b34cf1c2615..52e271f1e1a 100644 --- a/Polyhedron/examples/Polyhedron/CMakeLists.txt +++ b/Polyhedron/examples/Polyhedron/CMakeLists.txt @@ -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 diff --git a/Surface_mesh/examples/Surface_mesh/CMakeLists.txt b/Surface_mesh/examples/Surface_mesh/CMakeLists.txt index 228d384f295..9d8e042f86b 100644 --- a/Surface_mesh/examples/Surface_mesh/CMakeLists.txt +++ b/Surface_mesh/examples/Surface_mesh/CMakeLists.txt @@ -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) diff --git a/Surface_mesh_topology/examples/Surface_mesh_topology/CMakeLists.txt b/Surface_mesh_topology/examples/Surface_mesh_topology/CMakeLists.txt index cd7a003004a..1619360a89b 100644 --- a/Surface_mesh_topology/examples/Surface_mesh_topology/CMakeLists.txt +++ b/Surface_mesh_topology/examples/Surface_mesh_topology/CMakeLists.txt @@ -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) diff --git a/Surface_mesh_topology/test/Surface_mesh_topology/CMakeLists.txt b/Surface_mesh_topology/test/Surface_mesh_topology/CMakeLists.txt index ea96544f2a7..6c3fd7d56ba 100644 --- a/Surface_mesh_topology/test/Surface_mesh_topology/CMakeLists.txt +++ b/Surface_mesh_topology/test/Surface_mesh_topology/CMakeLists.txt @@ -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) diff --git a/Surface_mesher/examples/Surface_mesher/CMakeLists.txt b/Surface_mesher/examples/Surface_mesher/CMakeLists.txt index c91695daf4c..e55aeff3ee6 100644 --- a/Surface_mesher/examples/Surface_mesher/CMakeLists.txt +++ b/Surface_mesher/examples/Surface_mesher/CMakeLists.txt @@ -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) diff --git a/Triangulation_2/examples/Triangulation_2/CMakeLists.txt b/Triangulation_2/examples/Triangulation_2/CMakeLists.txt index 55c748576aa..7e794825f64 100644 --- a/Triangulation_2/examples/Triangulation_2/CMakeLists.txt +++ b/Triangulation_2/examples/Triangulation_2/CMakeLists.txt @@ -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 diff --git a/Triangulation_3/examples/Triangulation_3/CMakeLists.txt b/Triangulation_3/examples/Triangulation_3/CMakeLists.txt index 5890bde4df4..1cf7db34af8 100644 --- a/Triangulation_3/examples/Triangulation_3/CMakeLists.txt +++ b/Triangulation_3/examples/Triangulation_3/CMakeLists.txt @@ -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")