diff --git a/AABB_tree/benchmark/AABB_tree/CMakeLists.txt b/AABB_tree/benchmark/AABB_tree/CMakeLists.txt index 077df0007ca..0716a91ec94 100644 --- a/AABB_tree/benchmark/AABB_tree/CMakeLists.txt +++ b/AABB_tree/benchmark/AABB_tree/CMakeLists.txt @@ -1,19 +1,9 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( AABB_traits_benchmark) - -cmake_minimum_required(VERSION 3.1) - cmake_policy(VERSION 3.1) - - -if ( COMMAND cmake_policy ) - - cmake_policy( SET CMP0003 NEW ) - -endif() - # CGAL and its components find_package( CGAL QUIET) if ( CGAL_FOUND ) diff --git a/AABB_tree/demo/AABB_tree/CMakeLists.txt b/AABB_tree/demo/AABB_tree/CMakeLists.txt index 11a5922ccf6..a0c5d53950a 100644 --- a/AABB_tree/demo/AABB_tree/CMakeLists.txt +++ b/AABB_tree/demo/AABB_tree/CMakeLists.txt @@ -1,12 +1,12 @@ # This is the CMake script for compiling the AABB tree demo. +cmake_minimum_required(VERSION 3.1...3.15) project( AABB_tree_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) 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) diff --git a/AABB_tree/examples/AABB_tree/CMakeLists.txt b/AABB_tree/examples/AABB_tree/CMakeLists.txt index c3317a79f65..87fa3857ab5 100644 --- a/AABB_tree/examples/AABB_tree/CMakeLists.txt +++ b/AABB_tree/examples/AABB_tree/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( AABB_tree_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/AABB_tree/test/AABB_tree/CMakeLists.txt b/AABB_tree/test/AABB_tree/CMakeLists.txt index 38a39723ead..7e06dbb8700 100644 --- a/AABB_tree/test/AABB_tree/CMakeLists.txt +++ b/AABB_tree/test/AABB_tree/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( AABB_tree_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Advancing_front_surface_reconstruction/examples/Advancing_front_surface_reconstruction/CMakeLists.txt b/Advancing_front_surface_reconstruction/examples/Advancing_front_surface_reconstruction/CMakeLists.txt index 761ad7dd237..269a60864e8 100644 --- a/Advancing_front_surface_reconstruction/examples/Advancing_front_surface_reconstruction/CMakeLists.txt +++ b/Advancing_front_surface_reconstruction/examples/Advancing_front_surface_reconstruction/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Advancing_front_surface_reconstruction_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Advancing_front_surface_reconstruction/test/Advancing_front_surface_reconstruction/CMakeLists.txt b/Advancing_front_surface_reconstruction/test/Advancing_front_surface_reconstruction/CMakeLists.txt index 3eeeba604c0..4112e7a65ce 100644 --- a/Advancing_front_surface_reconstruction/test/Advancing_front_surface_reconstruction/CMakeLists.txt +++ b/Advancing_front_surface_reconstruction/test/Advancing_front_surface_reconstruction/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Advancing_front_surface_reconstruction_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Algebraic_foundations/examples/Algebraic_foundations/CMakeLists.txt b/Algebraic_foundations/examples/Algebraic_foundations/CMakeLists.txt index d30a4c846c8..64184b35a89 100644 --- a/Algebraic_foundations/examples/Algebraic_foundations/CMakeLists.txt +++ b/Algebraic_foundations/examples/Algebraic_foundations/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Algebraic_foundations_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Algebraic_foundations/test/Algebraic_foundations/CMakeLists.txt b/Algebraic_foundations/test/Algebraic_foundations/CMakeLists.txt index 1eacdbebbfa..9b3ee11b5e7 100644 --- a/Algebraic_foundations/test/Algebraic_foundations/CMakeLists.txt +++ b/Algebraic_foundations/test/Algebraic_foundations/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Algebraic_foundations_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Algebraic_kernel_d/examples/Algebraic_kernel_d/CMakeLists.txt b/Algebraic_kernel_d/examples/Algebraic_kernel_d/CMakeLists.txt index d6a7178ec13..901221f91d0 100644 --- a/Algebraic_kernel_d/examples/Algebraic_kernel_d/CMakeLists.txt +++ b/Algebraic_kernel_d/examples/Algebraic_kernel_d/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Algebraic_kernel_d_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Algebraic_kernel_d/test/Algebraic_kernel_d/CMakeLists.txt b/Algebraic_kernel_d/test/Algebraic_kernel_d/CMakeLists.txt index a75ee88082e..35f3eb4d27a 100644 --- a/Algebraic_kernel_d/test/Algebraic_kernel_d/CMakeLists.txt +++ b/Algebraic_kernel_d/test/Algebraic_kernel_d/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Algebraic_kernel_d_Tests ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components diff --git a/Algebraic_kernel_for_circles/test/Algebraic_kernel_for_circles/CMakeLists.txt b/Algebraic_kernel_for_circles/test/Algebraic_kernel_for_circles/CMakeLists.txt index 4261dd0c584..f3b3894ae76 100644 --- a/Algebraic_kernel_for_circles/test/Algebraic_kernel_for_circles/CMakeLists.txt +++ b/Algebraic_kernel_for_circles/test/Algebraic_kernel_for_circles/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Algebraic_kernel_for_circles_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Algebraic_kernel_for_spheres/test/Algebraic_kernel_for_spheres/CMakeLists.txt b/Algebraic_kernel_for_spheres/test/Algebraic_kernel_for_spheres/CMakeLists.txt index 6b8567c4727..f6ef2f9d943 100644 --- a/Algebraic_kernel_for_spheres/test/Algebraic_kernel_for_spheres/CMakeLists.txt +++ b/Algebraic_kernel_for_spheres/test/Algebraic_kernel_for_spheres/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Algebraic_kernel_for_spheres_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Alpha_shapes_2/examples/Alpha_shapes_2/CMakeLists.txt b/Alpha_shapes_2/examples/Alpha_shapes_2/CMakeLists.txt index 79131b56ac0..977ebf3923a 100644 --- a/Alpha_shapes_2/examples/Alpha_shapes_2/CMakeLists.txt +++ b/Alpha_shapes_2/examples/Alpha_shapes_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Alpha_shapes_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Alpha_shapes_2/test/Alpha_shapes_2/CMakeLists.txt b/Alpha_shapes_2/test/Alpha_shapes_2/CMakeLists.txt index 8724fa225f4..0399340218c 100644 --- a/Alpha_shapes_2/test/Alpha_shapes_2/CMakeLists.txt +++ b/Alpha_shapes_2/test/Alpha_shapes_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Alpha_shapes_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Alpha_shapes_3/demo/Alpha_shapes_3/CMakeLists.txt b/Alpha_shapes_3/demo/Alpha_shapes_3/CMakeLists.txt index 6df765a5b7a..15a15504881 100644 --- a/Alpha_shapes_3/demo/Alpha_shapes_3/CMakeLists.txt +++ b/Alpha_shapes_3/demo/Alpha_shapes_3/CMakeLists.txt @@ -1,13 +1,13 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Alpha_shapes_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) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Alpha_shapes_3/examples/Alpha_shapes_3/CMakeLists.txt b/Alpha_shapes_3/examples/Alpha_shapes_3/CMakeLists.txt index c9d88b3942e..749ba649534 100644 --- a/Alpha_shapes_3/examples/Alpha_shapes_3/CMakeLists.txt +++ b/Alpha_shapes_3/examples/Alpha_shapes_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Alpha_shapes_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Alpha_shapes_3/test/Alpha_shapes_3/CMakeLists.txt b/Alpha_shapes_3/test/Alpha_shapes_3/CMakeLists.txt index 600a2a8ae41..9350624cb63 100644 --- a/Alpha_shapes_3/test/Alpha_shapes_3/CMakeLists.txt +++ b/Alpha_shapes_3/test/Alpha_shapes_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Alpha_shapes_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Apollonius_graph_2/examples/Apollonius_graph_2/CMakeLists.txt b/Apollonius_graph_2/examples/Apollonius_graph_2/CMakeLists.txt index 07f5f6688ba..e61205e45ae 100644 --- a/Apollonius_graph_2/examples/Apollonius_graph_2/CMakeLists.txt +++ b/Apollonius_graph_2/examples/Apollonius_graph_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Apollonius_graph_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Apollonius_graph_2/test/Apollonius_graph_2/CMakeLists.txt b/Apollonius_graph_2/test/Apollonius_graph_2/CMakeLists.txt index 65c0c68062b..a98b5dd6571 100644 --- a/Apollonius_graph_2/test/Apollonius_graph_2/CMakeLists.txt +++ b/Apollonius_graph_2/test/Apollonius_graph_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Apollonius_graph_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Arithmetic_kernel/test/Arithmetic_kernel/CMakeLists.txt b/Arithmetic_kernel/test/Arithmetic_kernel/CMakeLists.txt index 0df7f74c0f2..2807ba14ea0 100644 --- a/Arithmetic_kernel/test/Arithmetic_kernel/CMakeLists.txt +++ b/Arithmetic_kernel/test/Arithmetic_kernel/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Arithmetic_kernel_Tests ) -cmake_minimum_required(VERSION 3.1) diff --git a/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt b/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt index 449c2d25303..cbb231c76f5 100644 --- a/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt +++ b/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Arrangement_on_surface_2_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Arrangement_on_surface_2/examples/Arrangement_on_surface_2/CMakeLists.txt b/Arrangement_on_surface_2/examples/Arrangement_on_surface_2/CMakeLists.txt index 9968ed5dfae..5f226853d87 100644 --- a/Arrangement_on_surface_2/examples/Arrangement_on_surface_2/CMakeLists.txt +++ b/Arrangement_on_surface_2/examples/Arrangement_on_surface_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Arrangement_on_surface_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Arrangement_on_surface_2/test/Arrangement_on_surface_2/CMakeLists.txt b/Arrangement_on_surface_2/test/Arrangement_on_surface_2/CMakeLists.txt index 6df47f3371d..0ffdc893571 100644 --- a/Arrangement_on_surface_2/test/Arrangement_on_surface_2/CMakeLists.txt +++ b/Arrangement_on_surface_2/test/Arrangement_on_surface_2/CMakeLists.txt @@ -2,11 +2,11 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Arrangement_on_surface_2_Tests ) enable_testing() -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/BGL/examples/BGL_LCC/CMakeLists.txt b/BGL/examples/BGL_LCC/CMakeLists.txt index 1139bccedb8..0df74650e87 100644 --- a/BGL/examples/BGL_LCC/CMakeLists.txt +++ b/BGL/examples/BGL_LCC/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( BGL_LCC_Examples ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/BGL/examples/BGL_OpenMesh/CMakeLists.txt b/BGL/examples/BGL_OpenMesh/CMakeLists.txt index 118d52a20df..848b02e2604 100644 --- a/BGL/examples/BGL_OpenMesh/CMakeLists.txt +++ b/BGL/examples/BGL_OpenMesh/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( BGL_OpenMesh_Examples ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/BGL/examples/BGL_arrangement_2/CMakeLists.txt b/BGL/examples/BGL_arrangement_2/CMakeLists.txt index 55c9036e43a..676d1347aa3 100644 --- a/BGL/examples/BGL_arrangement_2/CMakeLists.txt +++ b/BGL/examples/BGL_arrangement_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( BGL_arrangement_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/BGL/examples/BGL_polyhedron_3/CMakeLists.txt b/BGL/examples/BGL_polyhedron_3/CMakeLists.txt index 9b1542ef967..ac3bd5256f2 100644 --- a/BGL/examples/BGL_polyhedron_3/CMakeLists.txt +++ b/BGL/examples/BGL_polyhedron_3/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( BGL_polyhedron_3_Examples ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/BGL/examples/BGL_surface_mesh/CMakeLists.txt b/BGL/examples/BGL_surface_mesh/CMakeLists.txt index c885f703675..13ba8575799 100644 --- a/BGL/examples/BGL_surface_mesh/CMakeLists.txt +++ b/BGL/examples/BGL_surface_mesh/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( BGL_surface_mesh_Examples ) -cmake_minimum_required(VERSION 3.1) find_package( CGAL QUIET ) diff --git a/BGL/examples/BGL_triangulation_2/CMakeLists.txt b/BGL/examples/BGL_triangulation_2/CMakeLists.txt index b3e337d3040..d6bb35f7d47 100644 --- a/BGL/examples/BGL_triangulation_2/CMakeLists.txt +++ b/BGL/examples/BGL_triangulation_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( BGL_triangulation_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/BGL/test/BGL/CMakeLists.txt b/BGL/test/BGL/CMakeLists.txt index 0949c353647..e7209f704d9 100644 --- a/BGL/test/BGL/CMakeLists.txt +++ b/BGL/test/BGL/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_cmake_script_with_options # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( BGL_Tests ) -cmake_minimum_required(VERSION 3.1) diff --git a/Barycentric_coordinates_2/examples/Barycentric_coordinates_2/CMakeLists.txt b/Barycentric_coordinates_2/examples/Barycentric_coordinates_2/CMakeLists.txt index afb44332279..2bfc68a24f3 100644 --- a/Barycentric_coordinates_2/examples/Barycentric_coordinates_2/CMakeLists.txt +++ b/Barycentric_coordinates_2/examples/Barycentric_coordinates_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Barycentric_coordinates_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Barycentric_coordinates_2/test/Barycentric_coordinates_2/CMakeLists.txt b/Barycentric_coordinates_2/test/Barycentric_coordinates_2/CMakeLists.txt index 1d55dbc2fd2..01ca0f52145 100644 --- a/Barycentric_coordinates_2/test/Barycentric_coordinates_2/CMakeLists.txt +++ b/Barycentric_coordinates_2/test/Barycentric_coordinates_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Barycentric_coordinates_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Boolean_set_operations_2/archive/demo/Boolean_set_operations_2_GraphicsView/CMakeLists.txt b/Boolean_set_operations_2/archive/demo/Boolean_set_operations_2_GraphicsView/CMakeLists.txt index d7246839fe3..91381c3a6b5 100644 --- a/Boolean_set_operations_2/archive/demo/Boolean_set_operations_2_GraphicsView/CMakeLists.txt +++ b/Boolean_set_operations_2/archive/demo/Boolean_set_operations_2_GraphicsView/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Boolean_set_operations_2_GraphicsView_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Boolean_set_operations_2/examples/Boolean_set_operations_2/CMakeLists.txt b/Boolean_set_operations_2/examples/Boolean_set_operations_2/CMakeLists.txt index 98df7ce7446..e96e127c29f 100644 --- a/Boolean_set_operations_2/examples/Boolean_set_operations_2/CMakeLists.txt +++ b/Boolean_set_operations_2/examples/Boolean_set_operations_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Boolean_set_operations_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Boolean_set_operations_2/test/Boolean_set_operations_2/CMakeLists.txt b/Boolean_set_operations_2/test/Boolean_set_operations_2/CMakeLists.txt index f1069ba938b..c846aae2c29 100644 --- a/Boolean_set_operations_2/test/Boolean_set_operations_2/CMakeLists.txt +++ b/Boolean_set_operations_2/test/Boolean_set_operations_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Boolean_set_operations_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/examples/Approximate_min_ellipsoid_d/CMakeLists.txt b/Bounding_volumes/examples/Approximate_min_ellipsoid_d/CMakeLists.txt index 16a7ff583b6..8802463b72d 100644 --- a/Bounding_volumes/examples/Approximate_min_ellipsoid_d/CMakeLists.txt +++ b/Bounding_volumes/examples/Approximate_min_ellipsoid_d/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Approximate_min_ellipsoid_d_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/examples/Min_annulus_d/CMakeLists.txt b/Bounding_volumes/examples/Min_annulus_d/CMakeLists.txt index b406ed77552..6a578245a37 100644 --- a/Bounding_volumes/examples/Min_annulus_d/CMakeLists.txt +++ b/Bounding_volumes/examples/Min_annulus_d/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Min_annulus_d_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/examples/Min_circle_2/CMakeLists.txt b/Bounding_volumes/examples/Min_circle_2/CMakeLists.txt index d1db7e242fe..2361ab9059e 100644 --- a/Bounding_volumes/examples/Min_circle_2/CMakeLists.txt +++ b/Bounding_volumes/examples/Min_circle_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Min_circle_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/examples/Min_ellipse_2/CMakeLists.txt b/Bounding_volumes/examples/Min_ellipse_2/CMakeLists.txt index d0e44baa048..82d3b642425 100644 --- a/Bounding_volumes/examples/Min_ellipse_2/CMakeLists.txt +++ b/Bounding_volumes/examples/Min_ellipse_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Min_ellipse_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/examples/Min_quadrilateral_2/CMakeLists.txt b/Bounding_volumes/examples/Min_quadrilateral_2/CMakeLists.txt index b59e56f2286..7b6caab79f6 100644 --- a/Bounding_volumes/examples/Min_quadrilateral_2/CMakeLists.txt +++ b/Bounding_volumes/examples/Min_quadrilateral_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Min_quadrilateral_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/examples/Min_sphere_d/CMakeLists.txt b/Bounding_volumes/examples/Min_sphere_d/CMakeLists.txt index 685ac2e938b..158d28cebbb 100644 --- a/Bounding_volumes/examples/Min_sphere_d/CMakeLists.txt +++ b/Bounding_volumes/examples/Min_sphere_d/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Min_sphere_d_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/examples/Min_sphere_of_spheres_d/CMakeLists.txt b/Bounding_volumes/examples/Min_sphere_of_spheres_d/CMakeLists.txt index 39ba7fb4af5..df0cadc7874 100644 --- a/Bounding_volumes/examples/Min_sphere_of_spheres_d/CMakeLists.txt +++ b/Bounding_volumes/examples/Min_sphere_of_spheres_d/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Min_sphere_of_spheres_d_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/examples/Rectangular_p_center_2/CMakeLists.txt b/Bounding_volumes/examples/Rectangular_p_center_2/CMakeLists.txt index 76fb954b161..75e7de0f867 100644 --- a/Bounding_volumes/examples/Rectangular_p_center_2/CMakeLists.txt +++ b/Bounding_volumes/examples/Rectangular_p_center_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Rectangular_p_center_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Bounding_volumes/test/Bounding_volumes/CMakeLists.txt b/Bounding_volumes/test/Bounding_volumes/CMakeLists.txt index f6a82d575ee..403e652475c 100644 --- a/Bounding_volumes/test/Bounding_volumes/CMakeLists.txt +++ b/Bounding_volumes/test/Bounding_volumes/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Bounding_volumes_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Box_intersection_d/examples/Box_intersection_d/CMakeLists.txt b/Box_intersection_d/examples/Box_intersection_d/CMakeLists.txt index 1d5ab39100c..15ece488e70 100644 --- a/Box_intersection_d/examples/Box_intersection_d/CMakeLists.txt +++ b/Box_intersection_d/examples/Box_intersection_d/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Box_intersection_d_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Box_intersection_d/test/Box_intersection_d/CMakeLists.txt b/Box_intersection_d/test/Box_intersection_d/CMakeLists.txt index bcdb064e633..1beb02ff8d0 100644 --- a/Box_intersection_d/test/Box_intersection_d/CMakeLists.txt +++ b/Box_intersection_d/test/Box_intersection_d/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Box_intersection_d_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/CGAL_Core/examples/Core/CMakeLists.txt b/CGAL_Core/examples/Core/CMakeLists.txt index ad932d6731a..1ff71a69b29 100644 --- a/CGAL_Core/examples/Core/CMakeLists.txt +++ b/CGAL_Core/examples/Core/CMakeLists.txt @@ -1,7 +1,7 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Core_Examples ) -cmake_minimum_required(VERSION 3.1) diff --git a/CGAL_ImageIO/archive/demo/CGALimageIO/CMakeLists.txt b/CGAL_ImageIO/archive/demo/CGALimageIO/CMakeLists.txt index a5f3c89d94b..1a27c127533 100644 --- a/CGAL_ImageIO/archive/demo/CGALimageIO/CMakeLists.txt +++ b/CGAL_ImageIO/archive/demo/CGALimageIO/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(CGALimageIO_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt b/CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt index 3dcdf8d8c3d..58de82637bb 100644 --- a/CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt +++ b/CGAL_ImageIO/examples/CGALimageIO/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( CGALimageIO_Examples ) -cmake_minimum_required(VERSION 3.1) if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) diff --git a/CGAL_ImageIO/test/CGAL_ImageIO/CMakeLists.txt b/CGAL_ImageIO/test/CGAL_ImageIO/CMakeLists.txt index 81eec777452..a5a57186c4b 100644 --- a/CGAL_ImageIO/test/CGAL_ImageIO/CMakeLists.txt +++ b/CGAL_ImageIO/test/CGAL_ImageIO/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( CGAL_ImageIO_Tests ) -cmake_minimum_required(VERSION 3.1) if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) diff --git a/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt b/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt index 80fcb5d2695..64206c30223 100644 --- a/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt +++ b/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(CGAL_ipelets_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/CGAL_ipelets/examples/CGAL_ipelets/CMakeLists.txt b/CGAL_ipelets/examples/CGAL_ipelets/CMakeLists.txt index 25e4407eaf9..eda52201269 100644 --- a/CGAL_ipelets/examples/CGAL_ipelets/CMakeLists.txt +++ b/CGAL_ipelets/examples/CGAL_ipelets/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( CGAL_ipelets_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc901cea606..16935eafc15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,9 @@ # Top level CMakeLists.txt for CGAL-branchbuild message( "== CMake setup ==" ) +cmake_minimum_required(VERSION 3.1...3.15) project(CGAL CXX C) export(PACKAGE CGAL) # Minimal version of CMake: -cmake_minimum_required(VERSION 3.1) set( CGAL_BRANCH_BUILD ON CACHE INTERNAL "Create CGAL from a Git branch" FORCE) diff --git a/Circular_kernel_2/examples/Circular_kernel_2/CMakeLists.txt b/Circular_kernel_2/examples/Circular_kernel_2/CMakeLists.txt index 8072b3720da..1d1bb36d2cf 100644 --- a/Circular_kernel_2/examples/Circular_kernel_2/CMakeLists.txt +++ b/Circular_kernel_2/examples/Circular_kernel_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Circular_kernel_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Circular_kernel_2/test/Circular_kernel_2/CMakeLists.txt b/Circular_kernel_2/test/Circular_kernel_2/CMakeLists.txt index ac9e483e25f..74f626a1326 100644 --- a/Circular_kernel_2/test/Circular_kernel_2/CMakeLists.txt +++ b/Circular_kernel_2/test/Circular_kernel_2/CMakeLists.txt @@ -2,10 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Circular_kernel_2_Tests ) -CMAKE_MINIMUM_REQUIRED(VERSION 3.1) - find_package(CGAL QUIET) if ( CGAL_FOUND ) diff --git a/Circular_kernel_3/demo/Circular_kernel_3/CMakeLists.txt b/Circular_kernel_3/demo/Circular_kernel_3/CMakeLists.txt index f66a1c8c7b7..34fb62f0475 100644 --- a/Circular_kernel_3/demo/Circular_kernel_3/CMakeLists.txt +++ b/Circular_kernel_3/demo/Circular_kernel_3/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project (Circular_kernel_3_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Circular_kernel_3/examples/Circular_kernel_3/CMakeLists.txt b/Circular_kernel_3/examples/Circular_kernel_3/CMakeLists.txt index fceddecd46a..5c5a8f42781 100644 --- a/Circular_kernel_3/examples/Circular_kernel_3/CMakeLists.txt +++ b/Circular_kernel_3/examples/Circular_kernel_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Circular_kernel_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Circular_kernel_3/test/Circular_kernel_3/CMakeLists.txt b/Circular_kernel_3/test/Circular_kernel_3/CMakeLists.txt index 285115758a5..eb56bd82adf 100644 --- a/Circular_kernel_3/test/Circular_kernel_3/CMakeLists.txt +++ b/Circular_kernel_3/test/Circular_kernel_3/CMakeLists.txt @@ -2,10 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Circular_kernel_3_Tests ) -CMAKE_MINIMUM_REQUIRED(VERSION 3.1) - find_package(CGAL QUIET COMPONENTS Core ) if ( CGAL_FOUND ) diff --git a/Circulator/examples/Circulator/CMakeLists.txt b/Circulator/examples/Circulator/CMakeLists.txt index 25ebaaa3029..df3050fb2ac 100644 --- a/Circulator/examples/Circulator/CMakeLists.txt +++ b/Circulator/examples/Circulator/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Circulator_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Circulator/test/Circulator/CMakeLists.txt b/Circulator/test/Circulator/CMakeLists.txt index 330c0553644..413c1cdbfd2 100644 --- a/Circulator/test/Circulator/CMakeLists.txt +++ b/Circulator/test/Circulator/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Circulator_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Classification/examples/Classification/CMakeLists.txt b/Classification/examples/Classification/CMakeLists.txt index 73e009c7868..79ad8c5bf03 100644 --- a/Classification/examples/Classification/CMakeLists.txt +++ b/Classification/examples/Classification/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Classification_Examples ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Classification/test/Classification/CMakeLists.txt b/Classification/test/Classification/CMakeLists.txt index ba75c6ae11f..ae7699281d1 100644 --- a/Classification/test/Classification/CMakeLists.txt +++ b/Classification/test/Classification/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Classification_Tests ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Combinatorial_map/examples/Combinatorial_map/CMakeLists.txt b/Combinatorial_map/examples/Combinatorial_map/CMakeLists.txt index 78868a0c372..8a7390bdcb0 100644 --- a/Combinatorial_map/examples/Combinatorial_map/CMakeLists.txt +++ b/Combinatorial_map/examples/Combinatorial_map/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Combinatorial_map_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Combinatorial_map/test/Combinatorial_map/CMakeLists.txt b/Combinatorial_map/test/Combinatorial_map/CMakeLists.txt index f8dd901b528..6beb2c68493 100644 --- a/Combinatorial_map/test/Combinatorial_map/CMakeLists.txt +++ b/Combinatorial_map/test/Combinatorial_map/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Combinatorial_map_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt b/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt index 720ae284d4c..815413763a5 100644 --- a/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt +++ b/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.1...3.13) +cmake_minimum_required(VERSION 3.1...3.15) project( Cone_spanners_2_Examples ) find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core) diff --git a/Cone_spanners_2/test/Cone_spanners_2/CMakeLists.txt b/Cone_spanners_2/test/Cone_spanners_2/CMakeLists.txt index a859efd04e6..1a9a18f5016 100644 --- a/Cone_spanners_2/test/Cone_spanners_2/CMakeLists.txt +++ b/Cone_spanners_2/test/Cone_spanners_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Cone_spanners_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Convex_decomposition_3/examples/Convex_decomposition_3/CMakeLists.txt b/Convex_decomposition_3/examples/Convex_decomposition_3/CMakeLists.txt index 459d14c78b5..a2e6d17d236 100644 --- a/Convex_decomposition_3/examples/Convex_decomposition_3/CMakeLists.txt +++ b/Convex_decomposition_3/examples/Convex_decomposition_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Convex_decomposition_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Convex_decomposition_3/test/Convex_decomposition_3/CMakeLists.txt b/Convex_decomposition_3/test/Convex_decomposition_3/CMakeLists.txt index 8de39c59399..91dd854c203 100644 --- a/Convex_decomposition_3/test/Convex_decomposition_3/CMakeLists.txt +++ b/Convex_decomposition_3/test/Convex_decomposition_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Convex_decomposition_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Convex_hull_2/examples/Convex_hull_2/CMakeLists.txt b/Convex_hull_2/examples/Convex_hull_2/CMakeLists.txt index fb81c4d6131..35f20791847 100644 --- a/Convex_hull_2/examples/Convex_hull_2/CMakeLists.txt +++ b/Convex_hull_2/examples/Convex_hull_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Convex_hull_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Convex_hull_2/test/Convex_hull_2/CMakeLists.txt b/Convex_hull_2/test/Convex_hull_2/CMakeLists.txt index a39a58f5f99..e5373558182 100644 --- a/Convex_hull_2/test/Convex_hull_2/CMakeLists.txt +++ b/Convex_hull_2/test/Convex_hull_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Convex_hull_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Convex_hull_3/demo/Convex_hull_3/CMakeLists.txt b/Convex_hull_3/demo/Convex_hull_3/CMakeLists.txt index 59c80f4ec0e..37a6dd85f0c 100644 --- a/Convex_hull_3/demo/Convex_hull_3/CMakeLists.txt +++ b/Convex_hull_3/demo/Convex_hull_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Convex_hull_3_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Convex_hull_3/examples/Convex_hull_3/CMakeLists.txt b/Convex_hull_3/examples/Convex_hull_3/CMakeLists.txt index a2a70fa2592..18d983da969 100644 --- a/Convex_hull_3/examples/Convex_hull_3/CMakeLists.txt +++ b/Convex_hull_3/examples/Convex_hull_3/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Convex_hull_3_Examples ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Convex_hull_3/test/Convex_hull_3/CMakeLists.txt b/Convex_hull_3/test/Convex_hull_3/CMakeLists.txt index beb28619ce8..8282bc77bab 100644 --- a/Convex_hull_3/test/Convex_hull_3/CMakeLists.txt +++ b/Convex_hull_3/test/Convex_hull_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Convex_hull_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Convex_hull_d/test/Convex_hull_d/CMakeLists.txt b/Convex_hull_d/test/Convex_hull_d/CMakeLists.txt index fc19860c41c..39cd11743b1 100644 --- a/Convex_hull_d/test/Convex_hull_d/CMakeLists.txt +++ b/Convex_hull_d/test/Convex_hull_d/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Convex_hull_d_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Distance_2/test/Distance_2/CMakeLists.txt b/Distance_2/test/Distance_2/CMakeLists.txt index 0b93c5f718c..73491efcd2e 100644 --- a/Distance_2/test/Distance_2/CMakeLists.txt +++ b/Distance_2/test/Distance_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Distance_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Distance_3/test/Distance_3/CMakeLists.txt b/Distance_3/test/Distance_3/CMakeLists.txt index ce608ba48c7..9467abf2744 100644 --- a/Distance_3/test/Distance_3/CMakeLists.txt +++ b/Distance_3/test/Distance_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Distance_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Documentation/doc/CMakeLists.txt b/Documentation/doc/CMakeLists.txt index 1049c44db07..83b0918e75f 100644 --- a/Documentation/doc/CMakeLists.txt +++ b/Documentation/doc/CMakeLists.txt @@ -1,7 +1,7 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(Documentation NONE) # Minimal version of CMake: -cmake_minimum_required(VERSION 3.1) # Check whether this cmake script is the top level one if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/Envelope_2/examples/Envelope_2/CMakeLists.txt b/Envelope_2/examples/Envelope_2/CMakeLists.txt index 936b6d1dabb..4a25f90e742 100644 --- a/Envelope_2/examples/Envelope_2/CMakeLists.txt +++ b/Envelope_2/examples/Envelope_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Envelope_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Envelope_2/test/Envelope_2/CMakeLists.txt b/Envelope_2/test/Envelope_2/CMakeLists.txt index 01cd46d3976..5ea14d5d6cb 100644 --- a/Envelope_2/test/Envelope_2/CMakeLists.txt +++ b/Envelope_2/test/Envelope_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Envelope_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Envelope_3/examples/Envelope_3/CMakeLists.txt b/Envelope_3/examples/Envelope_3/CMakeLists.txt index 4f3dd717ad7..27e66795501 100644 --- a/Envelope_3/examples/Envelope_3/CMakeLists.txt +++ b/Envelope_3/examples/Envelope_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Envelope_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Envelope_3/test/Envelope_3/CMakeLists.txt b/Envelope_3/test/Envelope_3/CMakeLists.txt index da3fdcc438a..8ccc89c8780 100644 --- a/Envelope_3/test/Envelope_3/CMakeLists.txt +++ b/Envelope_3/test/Envelope_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Envelope_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Filtered_kernel/benchmark/Filtered_kernel/CMakeLists.txt b/Filtered_kernel/benchmark/Filtered_kernel/CMakeLists.txt index 5f557e993c4..c39a9422005 100644 --- a/Filtered_kernel/benchmark/Filtered_kernel/CMakeLists.txt +++ b/Filtered_kernel/benchmark/Filtered_kernel/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Filtered_kernel_test ) -cmake_minimum_required(VERSION 3.1) add_executable(bench_simple_comparisons bench_simple_comparisons.cpp) diff --git a/Filtered_kernel/examples/Filtered_kernel/CMakeLists.txt b/Filtered_kernel/examples/Filtered_kernel/CMakeLists.txt index ebcff9060b2..95f51a659ec 100644 --- a/Filtered_kernel/examples/Filtered_kernel/CMakeLists.txt +++ b/Filtered_kernel/examples/Filtered_kernel/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Filtered_kernel_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Filtered_kernel/test/Filtered_kernel/CMakeLists.txt b/Filtered_kernel/test/Filtered_kernel/CMakeLists.txt index 6b3d72637c4..ebe71fe250d 100644 --- a/Filtered_kernel/test/Filtered_kernel/CMakeLists.txt +++ b/Filtered_kernel/test/Filtered_kernel/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Filtered_kernel_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Generalized_map/examples/Generalized_map/CMakeLists.txt b/Generalized_map/examples/Generalized_map/CMakeLists.txt index 2fde81ed252..96e14762a6f 100644 --- a/Generalized_map/examples/Generalized_map/CMakeLists.txt +++ b/Generalized_map/examples/Generalized_map/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Generalized_map_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Generalized_map/test/Generalized_map/CMakeLists.txt b/Generalized_map/test/Generalized_map/CMakeLists.txt index 2fc8c4ac4a4..42a97871fe6 100644 --- a/Generalized_map/test/Generalized_map/CMakeLists.txt +++ b/Generalized_map/test/Generalized_map/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Generalized_map_Tests ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Generator/benchmark/Generator/CMakeLists.txt b/Generator/benchmark/Generator/CMakeLists.txt index cef6304650d..2fc34e54fd5 100644 --- a/Generator/benchmark/Generator/CMakeLists.txt +++ b/Generator/benchmark/Generator/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Generator_example ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Generator/examples/Generator/CMakeLists.txt b/Generator/examples/Generator/CMakeLists.txt index b5fc21b2fd3..8ef7883800d 100644 --- a/Generator/examples/Generator/CMakeLists.txt +++ b/Generator/examples/Generator/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Generator_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Generator/test/Generator/CMakeLists.txt b/Generator/test/Generator/CMakeLists.txt index a5606234f16..8842178b20b 100644 --- a/Generator/test/Generator/CMakeLists.txt +++ b/Generator/test/Generator/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Generator_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Geomview/demo/Geomview/CMakeLists.txt b/Geomview/demo/Geomview/CMakeLists.txt index fdba135eb21..0e03866d452 100644 --- a/Geomview/demo/Geomview/CMakeLists.txt +++ b/Geomview/demo/Geomview/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Geomview_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Geomview/test/Geomview/CMakeLists.txt b/Geomview/test/Geomview/CMakeLists.txt index 82a744ca346..960bdbb70c0 100644 --- a/Geomview/test/Geomview/CMakeLists.txt +++ b/Geomview/test/Geomview/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Geomview_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/GraphicsView/demo/Alpha_shapes_2/CMakeLists.txt b/GraphicsView/demo/Alpha_shapes_2/CMakeLists.txt index f7a8bc079d6..5f7ab12f0a5 100644 --- a/GraphicsView/demo/Alpha_shapes_2/CMakeLists.txt +++ b/GraphicsView/demo/Alpha_shapes_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Alpha_shapes_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Apollonius_graph_2/CMakeLists.txt b/GraphicsView/demo/Apollonius_graph_2/CMakeLists.txt index 275cbce4285..a7010daf3a3 100644 --- a/GraphicsView/demo/Apollonius_graph_2/CMakeLists.txt +++ b/GraphicsView/demo/Apollonius_graph_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Apollonius_graph_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Bounding_volumes/CMakeLists.txt b/GraphicsView/demo/Bounding_volumes/CMakeLists.txt index b05e83971bd..3e5c460cf57 100644 --- a/GraphicsView/demo/Bounding_volumes/CMakeLists.txt +++ b/GraphicsView/demo/Bounding_volumes/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Bounding_volumes_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Circular_kernel_2/CMakeLists.txt b/GraphicsView/demo/Circular_kernel_2/CMakeLists.txt index fcbf3c053aa..c41827b6ce9 100644 --- a/GraphicsView/demo/Circular_kernel_2/CMakeLists.txt +++ b/GraphicsView/demo/Circular_kernel_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Circular_kernel_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Generator/CMakeLists.txt b/GraphicsView/demo/Generator/CMakeLists.txt index b4087d159f3..80b2e0b418f 100644 --- a/GraphicsView/demo/Generator/CMakeLists.txt +++ b/GraphicsView/demo/Generator/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Generator_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/GraphicsView/CMakeLists.txt b/GraphicsView/demo/GraphicsView/CMakeLists.txt index 68f0d001b0a..7a2a221bce6 100644 --- a/GraphicsView/demo/GraphicsView/CMakeLists.txt +++ b/GraphicsView/demo/GraphicsView/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (GraphicsView_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/L1_Voronoi_diagram_2/CMakeLists.txt b/GraphicsView/demo/L1_Voronoi_diagram_2/CMakeLists.txt index 87cc95e584f..af449d606ac 100644 --- a/GraphicsView/demo/L1_Voronoi_diagram_2/CMakeLists.txt +++ b/GraphicsView/demo/L1_Voronoi_diagram_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (L1_Voronoi_diagram_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Largest_empty_rect_2/CMakeLists.txt b/GraphicsView/demo/Largest_empty_rect_2/CMakeLists.txt index 66a9c615dc7..f9ea83c3ec3 100644 --- a/GraphicsView/demo/Largest_empty_rect_2/CMakeLists.txt +++ b/GraphicsView/demo/Largest_empty_rect_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Largest_empty_rect_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Periodic_2_triangulation_2/CMakeLists.txt b/GraphicsView/demo/Periodic_2_triangulation_2/CMakeLists.txt index 8f4739f959c..7e50b5f1351 100644 --- a/GraphicsView/demo/Periodic_2_triangulation_2/CMakeLists.txt +++ b/GraphicsView/demo/Periodic_2_triangulation_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project (Periodic_2_triangulation_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Polygon/CMakeLists.txt b/GraphicsView/demo/Polygon/CMakeLists.txt index bceee253d9a..8d0df276e19 100644 --- a/GraphicsView/demo/Polygon/CMakeLists.txt +++ b/GraphicsView/demo/Polygon/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Polygon_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Segment_Delaunay_graph_2/CMakeLists.txt b/GraphicsView/demo/Segment_Delaunay_graph_2/CMakeLists.txt index aa0672531f5..ac922296998 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_2/CMakeLists.txt +++ b/GraphicsView/demo/Segment_Delaunay_graph_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Segment_Delaunay_graph_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/CMakeLists.txt b/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/CMakeLists.txt index 978a1c71b40..a87600e4507 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/CMakeLists.txt +++ b/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Segment_Delaunay_graph_Linf_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Snap_rounding_2/CMakeLists.txt b/GraphicsView/demo/Snap_rounding_2/CMakeLists.txt index c7adc44e8dd..f4eb6c8b9d7 100644 --- a/GraphicsView/demo/Snap_rounding_2/CMakeLists.txt +++ b/GraphicsView/demo/Snap_rounding_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Snap_rounding_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Spatial_searching_2/CMakeLists.txt b/GraphicsView/demo/Spatial_searching_2/CMakeLists.txt index 47cb364fa44..fb30598a70e 100644 --- a/GraphicsView/demo/Spatial_searching_2/CMakeLists.txt +++ b/GraphicsView/demo/Spatial_searching_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Spatial_searching_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Stream_lines_2/CMakeLists.txt b/GraphicsView/demo/Stream_lines_2/CMakeLists.txt index 1ed1cb9be2a..b856b704cb9 100644 --- a/GraphicsView/demo/Stream_lines_2/CMakeLists.txt +++ b/GraphicsView/demo/Stream_lines_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Stream_lines_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/GraphicsView/demo/Triangulation_2/CMakeLists.txt b/GraphicsView/demo/Triangulation_2/CMakeLists.txt index ec05e490664..a4be4c94ca3 100644 --- a/GraphicsView/demo/Triangulation_2/CMakeLists.txt +++ b/GraphicsView/demo/Triangulation_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Triangulation_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/HalfedgeDS/examples/HalfedgeDS/CMakeLists.txt b/HalfedgeDS/examples/HalfedgeDS/CMakeLists.txt index 447e7b6ba16..bce6a8ffd4d 100644 --- a/HalfedgeDS/examples/HalfedgeDS/CMakeLists.txt +++ b/HalfedgeDS/examples/HalfedgeDS/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( HalfedgeDS_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/HalfedgeDS/test/HalfedgeDS/CMakeLists.txt b/HalfedgeDS/test/HalfedgeDS/CMakeLists.txt index f5f9cd20dc2..05a364aad47 100644 --- a/HalfedgeDS/test/HalfedgeDS/CMakeLists.txt +++ b/HalfedgeDS/test/HalfedgeDS/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( HalfedgeDS_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Hash_map/benchmark/Hash_map/CMakeLists.txt b/Hash_map/benchmark/Hash_map/CMakeLists.txt index 69c35aa6cf8..5a97491ec5e 100644 --- a/Hash_map/benchmark/Hash_map/CMakeLists.txt +++ b/Hash_map/benchmark/Hash_map/CMakeLists.txt @@ -1,19 +1,9 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Hash_map ) - -cmake_minimum_required(VERSION 3.1) -if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6) - if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3) - cmake_policy(VERSION 2.8.4) - else() - cmake_policy(VERSION 2.6) - endif() -endif() - - # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Hash_map/test/Hash_map/CMakeLists.txt b/Hash_map/test/Hash_map/CMakeLists.txt index dc3c46af912..7cacc28f58d 100644 --- a/Hash_map/test/Hash_map/CMakeLists.txt +++ b/Hash_map/test/Hash_map/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Hash_map_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Heat_method_3/examples/Heat_method_3/CMakeLists.txt b/Heat_method_3/examples/Heat_method_3/CMakeLists.txt index bd784bb1f76..ee40274e08e 100644 --- a/Heat_method_3/examples/Heat_method_3/CMakeLists.txt +++ b/Heat_method_3/examples/Heat_method_3/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Heat_method_3_Examples ) -cmake_minimum_required(VERSION 2.8.11) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Heat_method_3/test/Heat_method_3/CMakeLists.txt b/Heat_method_3/test/Heat_method_3/CMakeLists.txt index d498076d5b6..adb6cfa80c0 100644 --- a/Heat_method_3/test/Heat_method_3/CMakeLists.txt +++ b/Heat_method_3/test/Heat_method_3/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Heat_method_3_Tests ) -cmake_minimum_required(VERSION 2.8.11) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Hyperbolic_triangulation_2/benchmark/Hyperbolic_triangulation_2/CMakeLists.txt b/Hyperbolic_triangulation_2/benchmark/Hyperbolic_triangulation_2/CMakeLists.txt index 9d590a059a8..dc3db6a4d0b 100644 --- a/Hyperbolic_triangulation_2/benchmark/Hyperbolic_triangulation_2/CMakeLists.txt +++ b/Hyperbolic_triangulation_2/benchmark/Hyperbolic_triangulation_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Hyperbolic_triangulation_2_benchmark ) -cmake_minimum_required(VERSION 2.8.10) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/CMakeLists.txt b/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/CMakeLists.txt index 2a5cc5b55a4..f74d3a16aff 100644 --- a/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/CMakeLists.txt +++ b/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.1...3.13) +cmake_minimum_required(VERSION 3.1...3.15) project (Hyperbolic_triangulation_2_Demo) # Find includes in corresponding build directories diff --git a/Hyperbolic_triangulation_2/examples/Hyperbolic_triangulation_2/CMakeLists.txt b/Hyperbolic_triangulation_2/examples/Hyperbolic_triangulation_2/CMakeLists.txt index e0d12591bab..cfec6f7b943 100644 --- a/Hyperbolic_triangulation_2/examples/Hyperbolic_triangulation_2/CMakeLists.txt +++ b/Hyperbolic_triangulation_2/examples/Hyperbolic_triangulation_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Hyperbolic_triangulation_2_Examples ) -cmake_minimum_required(VERSION 3.1...3.13) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Hyperbolic_triangulation_2/test/Hyperbolic_triangulation_2/CMakeLists.txt b/Hyperbolic_triangulation_2/test/Hyperbolic_triangulation_2/CMakeLists.txt index 73ee571e17d..61144763f2f 100644 --- a/Hyperbolic_triangulation_2/test/Hyperbolic_triangulation_2/CMakeLists.txt +++ b/Hyperbolic_triangulation_2/test/Hyperbolic_triangulation_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Hyperbolic_triangulation_2_Tests ) -cmake_minimum_required(VERSION 3.1...3.13) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Inscribed_areas/examples/Inscribed_areas/CMakeLists.txt b/Inscribed_areas/examples/Inscribed_areas/CMakeLists.txt index 3d5706c5c0d..9246a135634 100644 --- a/Inscribed_areas/examples/Inscribed_areas/CMakeLists.txt +++ b/Inscribed_areas/examples/Inscribed_areas/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Inscribed_areas_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Inscribed_areas/test/Inscribed_areas/CMakeLists.txt b/Inscribed_areas/test/Inscribed_areas/CMakeLists.txt index bbf3e5e4984..4f80ea65904 100644 --- a/Inscribed_areas/test/Inscribed_areas/CMakeLists.txt +++ b/Inscribed_areas/test/Inscribed_areas/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Inscribed_areas_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index 67c02505d4e..43ecf358f28 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -4,14 +4,10 @@ # ${CMAKE_SOURCE_DIR} and to the root binary directory of the project as # ${CMAKE_BINARY_DIR} or ${CMAKE_BINARY_DIR}. if(NOT PROJECT_NAME) + cmake_minimum_required(VERSION 3.1...3.15) project(CGAL CXX C) endif() -# Minimal version of CMake: -cmake_minimum_required(VERSION 3.1) - -# Tested version: -cmake_policy(VERSION 3.1) if(POLICY CMP0056) # https://cmake.org/cmake/help/v3.2/policy/CMP0056.html diff --git a/Installation/demo/CMakeLists.txt b/Installation/demo/CMakeLists.txt index bc7742627a1..d418f55efc5 100644 --- a/Installation/demo/CMakeLists.txt +++ b/Installation/demo/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(CGAL_DEMOS) -cmake_minimum_required(VERSION 3.1) if (CGAL_BRANCH_BUILD) diff --git a/Installation/examples/CMakeLists.txt b/Installation/examples/CMakeLists.txt index 643083964e5..4bfe831125a 100644 --- a/Installation/examples/CMakeLists.txt +++ b/Installation/examples/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(CGAL_EXAMPLES) -cmake_minimum_required(VERSION 3.1) if (CGAL_BRANCH_BUILD) diff --git a/Installation/test/CMakeLists.txt b/Installation/test/CMakeLists.txt index b3d48f783e6..4191a3d8132 100644 --- a/Installation/test/CMakeLists.txt +++ b/Installation/test/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(CGAL_TESTS) -cmake_minimum_required(VERSION 3.1) if (CGAL_BRANCH_BUILD) diff --git a/Installation/test/Installation/CMakeLists.txt b/Installation/test/Installation/CMakeLists.txt index a8e11520ed3..1428689fa6b 100644 --- a/Installation/test/Installation/CMakeLists.txt +++ b/Installation/test/Installation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Installation_Tests ) -cmake_minimum_required(VERSION 3.1) macro(create_link_to_program COMPONENT ) diff --git a/Interpolation/demo/Interpolation/CMakeLists.txt b/Interpolation/demo/Interpolation/CMakeLists.txt index 17bf86f2500..c725480248b 100644 --- a/Interpolation/demo/Interpolation/CMakeLists.txt +++ b/Interpolation/demo/Interpolation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Interpolation_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Interpolation/examples/Interpolation/CMakeLists.txt b/Interpolation/examples/Interpolation/CMakeLists.txt index d12b05c9cf7..e67f810beaf 100644 --- a/Interpolation/examples/Interpolation/CMakeLists.txt +++ b/Interpolation/examples/Interpolation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Interpolation_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Interpolation/test/Interpolation/CMakeLists.txt b/Interpolation/test/Interpolation/CMakeLists.txt index d0cf0974741..cd63391899a 100644 --- a/Interpolation/test/Interpolation/CMakeLists.txt +++ b/Interpolation/test/Interpolation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Interpolation_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Intersections_2/test/Intersections_2/CMakeLists.txt b/Intersections_2/test/Intersections_2/CMakeLists.txt index 8776da99898..ca7c9af6f7f 100644 --- a/Intersections_2/test/Intersections_2/CMakeLists.txt +++ b/Intersections_2/test/Intersections_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Intersections_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Intersections_3/test/Intersections_3/CMakeLists.txt b/Intersections_3/test/Intersections_3/CMakeLists.txt index f218d33bd42..9c0b854325c 100644 --- a/Intersections_3/test/Intersections_3/CMakeLists.txt +++ b/Intersections_3/test/Intersections_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Intersections_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Interval_skip_list/examples/Interval_skip_list/CMakeLists.txt b/Interval_skip_list/examples/Interval_skip_list/CMakeLists.txt index 2d26929b883..5e56b2e0441 100644 --- a/Interval_skip_list/examples/Interval_skip_list/CMakeLists.txt +++ b/Interval_skip_list/examples/Interval_skip_list/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Interval_skip_list_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Interval_skip_list/test/Interval_skip_list/CMakeLists.txt b/Interval_skip_list/test/Interval_skip_list/CMakeLists.txt index 9245b8e32a4..ddd8e03515e 100644 --- a/Interval_skip_list/test/Interval_skip_list/CMakeLists.txt +++ b/Interval_skip_list/test/Interval_skip_list/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Interval_skip_list_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Interval_support/test/Interval_support/CMakeLists.txt b/Interval_support/test/Interval_support/CMakeLists.txt index 220902b3b7d..f2b07259aaa 100644 --- a/Interval_support/test/Interval_support/CMakeLists.txt +++ b/Interval_support/test/Interval_support/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Interval_support_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Inventor/test/Inventor/CMakeLists.txt b/Inventor/test/Inventor/CMakeLists.txt index cf2ec4f6944..0d296008396 100644 --- a/Inventor/test/Inventor/CMakeLists.txt +++ b/Inventor/test/Inventor/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Inventor_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Jet_fitting_3/examples/Jet_fitting_3/CMakeLists.txt b/Jet_fitting_3/examples/Jet_fitting_3/CMakeLists.txt index 51cf4c4b351..19a1b9d32bd 100644 --- a/Jet_fitting_3/examples/Jet_fitting_3/CMakeLists.txt +++ b/Jet_fitting_3/examples/Jet_fitting_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Jet_fitting_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Jet_fitting_3/test/Jet_fitting_3/CMakeLists.txt b/Jet_fitting_3/test/Jet_fitting_3/CMakeLists.txt index 14e3e10e01b..c1cbc58150d 100644 --- a/Jet_fitting_3/test/Jet_fitting_3/CMakeLists.txt +++ b/Jet_fitting_3/test/Jet_fitting_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Jet_fitting_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Kernel_23/examples/Kernel_23/CMakeLists.txt b/Kernel_23/examples/Kernel_23/CMakeLists.txt index efa36a2a3e9..0a49ed4e2b5 100644 --- a/Kernel_23/examples/Kernel_23/CMakeLists.txt +++ b/Kernel_23/examples/Kernel_23/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Kernel_23_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Kernel_23/test/Kernel_23/CMakeLists.txt b/Kernel_23/test/Kernel_23/CMakeLists.txt index 4a2dec20634..e75adb41e34 100644 --- a/Kernel_23/test/Kernel_23/CMakeLists.txt +++ b/Kernel_23/test/Kernel_23/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Kernel_23_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Kernel_d/test/Kernel_d/CMakeLists.txt b/Kernel_d/test/Kernel_d/CMakeLists.txt index d762e532a7a..a51d50d4063 100644 --- a/Kernel_d/test/Kernel_d/CMakeLists.txt +++ b/Kernel_d/test/Kernel_d/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Kernel_d_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Linear_cell_complex/benchmark/Linear_cell_complex_2/CMakeLists.txt b/Linear_cell_complex/benchmark/Linear_cell_complex_2/CMakeLists.txt index f80ad42a2ee..104ba1e1e06 100644 --- a/Linear_cell_complex/benchmark/Linear_cell_complex_2/CMakeLists.txt +++ b/Linear_cell_complex/benchmark/Linear_cell_complex_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(LCC_performance_2) -cmake_minimum_required(VERSION 3.1) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/) diff --git a/Linear_cell_complex/benchmark/Linear_cell_complex_3/CMakeLists.txt b/Linear_cell_complex/benchmark/Linear_cell_complex_3/CMakeLists.txt index e3eff7e6d85..5deb9decee3 100644 --- a/Linear_cell_complex/benchmark/Linear_cell_complex_3/CMakeLists.txt +++ b/Linear_cell_complex/benchmark/Linear_cell_complex_3/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(LCC_performance_3) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Linear_cell_complex/demo/Linear_cell_complex/CMakeLists.txt b/Linear_cell_complex/demo/Linear_cell_complex/CMakeLists.txt index d23afa5eb3d..23122c42449 100644 --- a/Linear_cell_complex/demo/Linear_cell_complex/CMakeLists.txt +++ b/Linear_cell_complex/demo/Linear_cell_complex/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. # cmake ../ -DCMAKE_BUILD_TYPE=Debug +cmake_minimum_required(VERSION 3.1...3.15) project (Linear_cell_complex_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt b/Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt index 4ed3f8f2f2c..270c76321d8 100644 --- a/Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt +++ b/Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Linear_cell_complex_Examples ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Linear_cell_complex/test/Linear_cell_complex/CMakeLists.txt b/Linear_cell_complex/test/Linear_cell_complex/CMakeLists.txt index 9ae14e0d428..83ce4a56d3d 100644 --- a/Linear_cell_complex/test/Linear_cell_complex/CMakeLists.txt +++ b/Linear_cell_complex/test/Linear_cell_complex/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Linear_cell_complex_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Matrix_search/examples/Matrix_search/CMakeLists.txt b/Matrix_search/examples/Matrix_search/CMakeLists.txt index d72870c96af..06b6e55653e 100644 --- a/Matrix_search/examples/Matrix_search/CMakeLists.txt +++ b/Matrix_search/examples/Matrix_search/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Matrix_search_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Matrix_search/test/Matrix_search/CMakeLists.txt b/Matrix_search/test/Matrix_search/CMakeLists.txt index fd3de9c33ab..b64f9a2ce51 100644 --- a/Matrix_search/test/Matrix_search/CMakeLists.txt +++ b/Matrix_search/test/Matrix_search/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Matrix_search_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Mesh_2/demo/Mesh_2/CMakeLists.txt b/Mesh_2/demo/Mesh_2/CMakeLists.txt index f50101e391a..5d2a871c8bd 100644 --- a/Mesh_2/demo/Mesh_2/CMakeLists.txt +++ b/Mesh_2/demo/Mesh_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script (and then adapted manually). # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Mesh_2_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Mesh_2/examples/Mesh_2/CMakeLists.txt b/Mesh_2/examples/Mesh_2/CMakeLists.txt index 69148ac52ee..dba5c15ac7f 100644 --- a/Mesh_2/examples/Mesh_2/CMakeLists.txt +++ b/Mesh_2/examples/Mesh_2/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Mesh_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Mesh_2/test/Mesh_2/CMakeLists.txt b/Mesh_2/test/Mesh_2/CMakeLists.txt index e5bb16314ee..dbad6bab456 100644 --- a/Mesh_2/test/Mesh_2/CMakeLists.txt +++ b/Mesh_2/test/Mesh_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Mesh_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Mesh_3/archive/applications/CMakeLists.txt b/Mesh_3/archive/applications/CMakeLists.txt index 9ce425b3cd8..688379dab15 100644 --- a/Mesh_3/archive/applications/CMakeLists.txt +++ b/Mesh_3/archive/applications/CMakeLists.txt @@ -2,10 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Mesh_3_applications ) -CMAKE_MINIMUM_REQUIRED(VERSION 3.1) - include_directories(../include) diff --git a/Mesh_3/benchmark/Mesh_3/CMakeLists.txt b/Mesh_3/benchmark/Mesh_3/CMakeLists.txt index 27422304a52..5192a5b79a1 100644 --- a/Mesh_3/benchmark/Mesh_3/CMakeLists.txt +++ b/Mesh_3/benchmark/Mesh_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Mesh_3_benchmark ) -cmake_minimum_required(VERSION 3.1) # Creates a new CMake option, turned ON by default diff --git a/Mesh_3/examples/Mesh_3/CMakeLists.txt b/Mesh_3/examples/Mesh_3/CMakeLists.txt index 629102a8891..363821b8f97 100644 --- a/Mesh_3/examples/Mesh_3/CMakeLists.txt +++ b/Mesh_3/examples/Mesh_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Mesh_3_Examples ) -cmake_minimum_required(VERSION 3.1) add_definitions(-DCGAL_MESH_3_NO_DEPRECATED_SURFACE_INDEX diff --git a/Mesh_3/test/Mesh_3/CMakeLists.txt b/Mesh_3/test/Mesh_3/CMakeLists.txt index 9416ffb65a5..03f021a7172 100644 --- a/Mesh_3/test/Mesh_3/CMakeLists.txt +++ b/Mesh_3/test/Mesh_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Mesh_3_Tests ) -cmake_minimum_required(VERSION 3.1) if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) diff --git a/Minkowski_sum_2/examples/Minkowski_sum_2/CMakeLists.txt b/Minkowski_sum_2/examples/Minkowski_sum_2/CMakeLists.txt index 2f136a10e3f..b6eba1ecf06 100644 --- a/Minkowski_sum_2/examples/Minkowski_sum_2/CMakeLists.txt +++ b/Minkowski_sum_2/examples/Minkowski_sum_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Minkowski_sum_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Minkowski_sum_2/test/Minkowski_sum_2/CMakeLists.txt b/Minkowski_sum_2/test/Minkowski_sum_2/CMakeLists.txt index d33c2b035fc..1399a98fe6b 100644 --- a/Minkowski_sum_2/test/Minkowski_sum_2/CMakeLists.txt +++ b/Minkowski_sum_2/test/Minkowski_sum_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Minkowski_sum_2_Tests ) -cmake_minimum_required(VERSION 3.1) # Commented out C++11 for now # list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_generalized_initializers has_cpp11) diff --git a/Minkowski_sum_3/examples/Minkowski_sum_3/CMakeLists.txt b/Minkowski_sum_3/examples/Minkowski_sum_3/CMakeLists.txt index 48979916032..1139a09ca1a 100644 --- a/Minkowski_sum_3/examples/Minkowski_sum_3/CMakeLists.txt +++ b/Minkowski_sum_3/examples/Minkowski_sum_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Minkowski_sum_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Minkowski_sum_3/test/Minkowski_sum_3/CMakeLists.txt b/Minkowski_sum_3/test/Minkowski_sum_3/CMakeLists.txt index 6dd6ab412ca..3e63dc654a9 100644 --- a/Minkowski_sum_3/test/Minkowski_sum_3/CMakeLists.txt +++ b/Minkowski_sum_3/test/Minkowski_sum_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Minkowski_sum_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Modifier/test/Modifier/CMakeLists.txt b/Modifier/test/Modifier/CMakeLists.txt index 5725a932f98..3963e02285c 100644 --- a/Modifier/test/Modifier/CMakeLists.txt +++ b/Modifier/test/Modifier/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Modifier_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Modular_arithmetic/examples/Modular_arithmetic/CMakeLists.txt b/Modular_arithmetic/examples/Modular_arithmetic/CMakeLists.txt index 7938201664d..4fd088120ec 100644 --- a/Modular_arithmetic/examples/Modular_arithmetic/CMakeLists.txt +++ b/Modular_arithmetic/examples/Modular_arithmetic/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Modular_arithmetic_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Modular_arithmetic/test/Modular_arithmetic/CMakeLists.txt b/Modular_arithmetic/test/Modular_arithmetic/CMakeLists.txt index 87d9c78a2c2..0af90f16bab 100644 --- a/Modular_arithmetic/test/Modular_arithmetic/CMakeLists.txt +++ b/Modular_arithmetic/test/Modular_arithmetic/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Modular_arithmetic_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Nef_2/examples/Nef_2/CMakeLists.txt b/Nef_2/examples/Nef_2/CMakeLists.txt index f9e6a9469f4..291dbb406ef 100644 --- a/Nef_2/examples/Nef_2/CMakeLists.txt +++ b/Nef_2/examples/Nef_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Nef_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Nef_2/test/Nef_2/CMakeLists.txt b/Nef_2/test/Nef_2/CMakeLists.txt index d7b38938cf1..4807a0e67e1 100644 --- a/Nef_2/test/Nef_2/CMakeLists.txt +++ b/Nef_2/test/Nef_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Nef_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Nef_3/examples/Nef_3/CMakeLists.txt b/Nef_3/examples/Nef_3/CMakeLists.txt index c2f45ea20a4..ec12fc129f2 100644 --- a/Nef_3/examples/Nef_3/CMakeLists.txt +++ b/Nef_3/examples/Nef_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Nef_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Nef_3/test/Nef_3/CMakeLists.txt b/Nef_3/test/Nef_3/CMakeLists.txt index d7661acf34e..298c66dea57 100644 --- a/Nef_3/test/Nef_3/CMakeLists.txt +++ b/Nef_3/test/Nef_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Nef_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Nef_S2/examples/Nef_S2/CMakeLists.txt b/Nef_S2/examples/Nef_S2/CMakeLists.txt index 7b698fa8636..6eaf799c38c 100644 --- a/Nef_S2/examples/Nef_S2/CMakeLists.txt +++ b/Nef_S2/examples/Nef_S2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Nef_S2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Nef_S2/test/Nef_S2/CMakeLists.txt b/Nef_S2/test/Nef_S2/CMakeLists.txt index 2690878885b..e4005c20794 100644 --- a/Nef_S2/test/Nef_S2/CMakeLists.txt +++ b/Nef_S2/test/Nef_S2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Nef_S2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/NewKernel_d/test/NewKernel_d/CMakeLists.txt b/NewKernel_d/test/NewKernel_d/CMakeLists.txt index 36b37c8bb60..9cbe76d8204 100644 --- a/NewKernel_d/test/NewKernel_d/CMakeLists.txt +++ b/NewKernel_d/test/NewKernel_d/CMakeLists.txt @@ -3,9 +3,9 @@ # Then modified by hand to add Eigen3. +cmake_minimum_required(VERSION 3.1...3.15) project( NewKernel_d_Tests ) -cmake_minimum_required(VERSION 3.1) if(CMAKE_COMPILER_IS_GNUCCX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4) message(STATUS "NOTICE: this directory requires a version of gcc >= 4.4, and will not be compiled.") diff --git a/Number_types/test/Number_types/CMakeLists.txt b/Number_types/test/Number_types/CMakeLists.txt index fc85257730e..6a74945aea9 100644 --- a/Number_types/test/Number_types/CMakeLists.txt +++ b/Number_types/test/Number_types/CMakeLists.txt @@ -3,9 +3,9 @@ # that dependency so as to test all the number types not depending on CORE # when it is not installed +cmake_minimum_required(VERSION 3.1...3.15) project( Number_types_Tests ) -cmake_minimum_required(VERSION 3.1) find_package( CGAL QUIET COMPONENTS Core ) diff --git a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt index 86f1b6be942..df6b3c38c1b 100644 --- a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt +++ b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling the Optimal_transportation_reconstruction_2 demo. +cmake_minimum_required(VERSION 3.1...3.15) project(Optimal_transportation_reconstruction_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Optimal_transportation_reconstruction_2/examples/Optimal_transportation_reconstruction_2/CMakeLists.txt b/Optimal_transportation_reconstruction_2/examples/Optimal_transportation_reconstruction_2/CMakeLists.txt index a36c1b65b10..7ed964cdd54 100644 --- a/Optimal_transportation_reconstruction_2/examples/Optimal_transportation_reconstruction_2/CMakeLists.txt +++ b/Optimal_transportation_reconstruction_2/examples/Optimal_transportation_reconstruction_2/CMakeLists.txt @@ -1,14 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Optimal_transportation_reconstruction_2_Examples ) -cmake_minimum_required(VERSION 3.1) -if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6) - if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3) - cmake_policy(VERSION 2.8.4) - else() - cmake_policy(VERSION 2.6) - endif() -endif() - find_package(CGAL QUIET) if ( CGAL_FOUND ) diff --git a/Optimal_transportation_reconstruction_2/test/Optimal_transportation_reconstruction_2/CMakeLists.txt b/Optimal_transportation_reconstruction_2/test/Optimal_transportation_reconstruction_2/CMakeLists.txt index fb284c89da7..09505a34174 100644 --- a/Optimal_transportation_reconstruction_2/test/Optimal_transportation_reconstruction_2/CMakeLists.txt +++ b/Optimal_transportation_reconstruction_2/test/Optimal_transportation_reconstruction_2/CMakeLists.txt @@ -1,14 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Optimal_transportation_reconstruction_2_Tests ) -cmake_minimum_required(VERSION 3.1) -if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6) - if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3) - cmake_policy(VERSION 2.8.4) - else() - cmake_policy(VERSION 2.6) - endif() -endif() - find_package(CGAL QUIET) if ( CGAL_FOUND ) diff --git a/Partition_2/examples/Partition_2/CMakeLists.txt b/Partition_2/examples/Partition_2/CMakeLists.txt index aafa87d0e5b..bd03b5b2bd5 100644 --- a/Partition_2/examples/Partition_2/CMakeLists.txt +++ b/Partition_2/examples/Partition_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Partition_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Partition_2/test/Partition_2/CMakeLists.txt b/Partition_2/test/Partition_2/CMakeLists.txt index 915bee9792f..8c5243d1204 100644 --- a/Partition_2/test/Partition_2/CMakeLists.txt +++ b/Partition_2/test/Partition_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Partition_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Periodic_2_triangulation_2/examples/Periodic_2_triangulation_2/CMakeLists.txt b/Periodic_2_triangulation_2/examples/Periodic_2_triangulation_2/CMakeLists.txt index 2f9d63ad422..71e272f464c 100644 --- a/Periodic_2_triangulation_2/examples/Periodic_2_triangulation_2/CMakeLists.txt +++ b/Periodic_2_triangulation_2/examples/Periodic_2_triangulation_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_2_triangulation_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Periodic_2_triangulation_2/test/Periodic_2_triangulation_2/CMakeLists.txt b/Periodic_2_triangulation_2/test/Periodic_2_triangulation_2/CMakeLists.txt index 3c8e59f8f34..6a285a1b067 100644 --- a/Periodic_2_triangulation_2/test/Periodic_2_triangulation_2/CMakeLists.txt +++ b/Periodic_2_triangulation_2/test/Periodic_2_triangulation_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_2_triangulation_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) 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 4c3efde1ded..b18274683b9 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 @@ -1,9 +1,9 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_3_mesh_3_Examples ) -cmake_minimum_required(VERSION 3.1) if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) 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 68ab382ea9f..dddf3a8f260 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 @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_3_mesh_3_Tests ) -cmake_minimum_required(VERSION 3.1) if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) diff --git a/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/CMakeLists.txt b/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/CMakeLists.txt index 43189c01d4a..eb9fc4be537 100644 --- a/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/CMakeLists.txt +++ b/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/CMakeLists.txt @@ -2,9 +2,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_3_triangulation_3_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Periodic_3_triangulation_3/demo/Periodic_Lloyd_3/CMakeLists.txt b/Periodic_3_triangulation_3/demo/Periodic_Lloyd_3/CMakeLists.txt index 151d1e3afc1..769c1dd3f1c 100644 --- a/Periodic_3_triangulation_3/demo/Periodic_Lloyd_3/CMakeLists.txt +++ b/Periodic_3_triangulation_3/demo/Periodic_Lloyd_3/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Periodic_Lloyd_3_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Periodic_3_triangulation_3/examples/Periodic_3_triangulation_3/CMakeLists.txt b/Periodic_3_triangulation_3/examples/Periodic_3_triangulation_3/CMakeLists.txt index 2a5ab412405..0698a06d176 100644 --- a/Periodic_3_triangulation_3/examples/Periodic_3_triangulation_3/CMakeLists.txt +++ b/Periodic_3_triangulation_3/examples/Periodic_3_triangulation_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_3_triangulation_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Periodic_3_triangulation_3/test/Periodic_3_triangulation_3/CMakeLists.txt b/Periodic_3_triangulation_3/test/Periodic_3_triangulation_3/CMakeLists.txt index 8c11ea11b00..44e7beae244 100644 --- a/Periodic_3_triangulation_3/test/Periodic_3_triangulation_3/CMakeLists.txt +++ b/Periodic_3_triangulation_3/test/Periodic_3_triangulation_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_3_triangulation_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt b/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt index 5f03ee9e575..c33f5aa4303 100644 --- a/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt +++ b/Periodic_4_hyperbolic_triangulation_2/benchmark/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_4_hyperbolic_triangulation_2_Benchmarks ) -cmake_minimum_required(VERSION 2.8.10) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Periodic_4_hyperbolic_triangulation_2/demo/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt b/Periodic_4_hyperbolic_triangulation_2/demo/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt index ee07f1a1066..663515d9ce9 100644 --- a/Periodic_4_hyperbolic_triangulation_2/demo/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt +++ b/Periodic_4_hyperbolic_triangulation_2/demo/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.1...3.13) +cmake_minimum_required(VERSION 3.1...3.15) project (Periodic_4_hyperbolic_triangulation_2_Demo) # Find includes in corresponding build directories diff --git a/Periodic_4_hyperbolic_triangulation_2/examples/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt b/Periodic_4_hyperbolic_triangulation_2/examples/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt index 62dc88202d6..0632fe87dfb 100644 --- a/Periodic_4_hyperbolic_triangulation_2/examples/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt +++ b/Periodic_4_hyperbolic_triangulation_2/examples/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.1...3.13) +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_4_hyperbolic_triangulation_2_Examples ) find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core ) diff --git a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt index 4a8d692d39a..d758a43f33d 100644 --- a/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt +++ b/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.1...3.13) +cmake_minimum_required(VERSION 3.1...3.15) project( Periodic_4_hyperbolic_triangulation_2_Tests ) find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core ) diff --git a/Point_set_2/examples/Point_set_2/CMakeLists.txt b/Point_set_2/examples/Point_set_2/CMakeLists.txt index 5c0becc7051..f477eb4d8bf 100644 --- a/Point_set_2/examples/Point_set_2/CMakeLists.txt +++ b/Point_set_2/examples/Point_set_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Point_set_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Point_set_2/test/Point_set_2/CMakeLists.txt b/Point_set_2/test/Point_set_2/CMakeLists.txt index 603c5f5a225..814bb1127a2 100644 --- a/Point_set_2/test/Point_set_2/CMakeLists.txt +++ b/Point_set_2/test/Point_set_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Point_set_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Point_set_3/examples/Point_set_3/CMakeLists.txt b/Point_set_3/examples/Point_set_3/CMakeLists.txt index 3820a32ef72..100e1919211 100644 --- a/Point_set_3/examples/Point_set_3/CMakeLists.txt +++ b/Point_set_3/examples/Point_set_3/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Point_set_3_Examples ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Point_set_3/test/Point_set_3/CMakeLists.txt b/Point_set_3/test/Point_set_3/CMakeLists.txt index 31df0bdf038..53f69efc6c3 100644 --- a/Point_set_3/test/Point_set_3/CMakeLists.txt +++ b/Point_set_3/test/Point_set_3/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Point_set_3_Tests ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Point_set_processing_3/examples/Point_set_processing_3/CMakeLists.txt b/Point_set_processing_3/examples/Point_set_processing_3/CMakeLists.txt index cf741624daa..c2da826d49b 100644 --- a/Point_set_processing_3/examples/Point_set_processing_3/CMakeLists.txt +++ b/Point_set_processing_3/examples/Point_set_processing_3/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling this folder. +cmake_minimum_required(VERSION 3.1...3.15) project( Point_set_processing_3_Examples ) -cmake_minimum_required(VERSION 3.1) # Find CGAL diff --git a/Point_set_processing_3/test/Point_set_processing_3/CMakeLists.txt b/Point_set_processing_3/test/Point_set_processing_3/CMakeLists.txt index e168fc5f532..264c713ef55 100644 --- a/Point_set_processing_3/test/Point_set_processing_3/CMakeLists.txt +++ b/Point_set_processing_3/test/Point_set_processing_3/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling this folder. +cmake_minimum_required(VERSION 3.1...3.15) project( Point_set_processing_3_Tests ) -cmake_minimum_required(VERSION 3.1) # Find CGAL diff --git a/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/CMakeLists.txt b/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/CMakeLists.txt index b3bba3377a4..ae0215158da 100644 --- a/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/CMakeLists.txt +++ b/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling this folder. +cmake_minimum_required(VERSION 3.1...3.15) project( Poisson_surface_reconstruction_3_Examples ) -cmake_minimum_required(VERSION 3.1) # Find CGAL find_package(CGAL QUIET) diff --git a/Poisson_surface_reconstruction_3/test/Poisson_surface_reconstruction_3/CMakeLists.txt b/Poisson_surface_reconstruction_3/test/Poisson_surface_reconstruction_3/CMakeLists.txt index 877911b52d0..e1d9326840b 100644 --- a/Poisson_surface_reconstruction_3/test/Poisson_surface_reconstruction_3/CMakeLists.txt +++ b/Poisson_surface_reconstruction_3/test/Poisson_surface_reconstruction_3/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling this folder. +cmake_minimum_required(VERSION 3.1...3.15) project( Poisson_surface_reconstruction_3_Tests ) -cmake_minimum_required(VERSION 3.1) # Find CGAL find_package(CGAL QUIET) diff --git a/Polygon/examples/Polygon/CMakeLists.txt b/Polygon/examples/Polygon/CMakeLists.txt index af10e6bde24..fbd4cbe65e2 100644 --- a/Polygon/examples/Polygon/CMakeLists.txt +++ b/Polygon/examples/Polygon/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polygon_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Polygon/test/Polygon/CMakeLists.txt b/Polygon/test/Polygon/CMakeLists.txt index bff643827c4..8174c9a6be7 100644 --- a/Polygon/test/Polygon/CMakeLists.txt +++ b/Polygon/test/Polygon/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polygon_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Polygon_mesh_processing/benchmark/Polygon_mesh_processing/CMakeLists.txt b/Polygon_mesh_processing/benchmark/Polygon_mesh_processing/CMakeLists.txt index b5c986dcaf0..45799830a42 100644 --- a/Polygon_mesh_processing/benchmark/Polygon_mesh_processing/CMakeLists.txt +++ b/Polygon_mesh_processing/benchmark/Polygon_mesh_processing/CMakeLists.txt @@ -1,19 +1,9 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Polygon_mesh_processing ) - -cmake_minimum_required(VERSION 3.1) -if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6) - if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3) - cmake_policy(VERSION 2.8.4) - else() - cmake_policy(VERSION 2.6) - endif() -endif() - - # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/CMakeLists.txt b/Polygon_mesh_processing/examples/Polygon_mesh_processing/CMakeLists.txt index 2f853f6cbe6..23fad404af5 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/CMakeLists.txt +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/CMakeLists.txt @@ -1,19 +1,9 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Polygon_mesh_processing_Examples ) - -cmake_minimum_required(VERSION 3.1) -if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6) - if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3) - cmake_policy(VERSION 2.8.4) - else() - cmake_policy(VERSION 2.6) - endif() -endif() - - # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Polygon_mesh_processing/test/Polygon_mesh_processing/CMakeLists.txt b/Polygon_mesh_processing/test/Polygon_mesh_processing/CMakeLists.txt index 686447f26d4..6242058639f 100644 --- a/Polygon_mesh_processing/test/Polygon_mesh_processing/CMakeLists.txt +++ b/Polygon_mesh_processing/test/Polygon_mesh_processing/CMakeLists.txt @@ -1,19 +1,9 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Polygon_mesh_processing_Tests ) - -cmake_minimum_required(VERSION 3.1) -if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6) - if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3) - cmake_policy(VERSION 2.8.4) - else() - cmake_policy(VERSION 2.6) - endif() -endif() - - # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Polyhedron/demo/Polyhedron/CMakeLists.txt b/Polyhedron/demo/Polyhedron/CMakeLists.txt index 7b4a38c2349..d1c810bba9c 100644 --- a/Polyhedron/demo/Polyhedron/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling the CGAL Polyhedron demo. +cmake_minimum_required(VERSION 3.1...3.15) project( Polyhedron_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Polyhedron/demo/Polyhedron/implicit_functions/CMakeLists.txt b/Polyhedron/demo/Polyhedron/implicit_functions/CMakeLists.txt index 6d3fcbd6a36..119f805359f 100644 --- a/Polyhedron/demo/Polyhedron/implicit_functions/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/implicit_functions/CMakeLists.txt @@ -1,10 +1,10 @@ # This is the CMake script for compiling the CGAL Mesh_3 demo implicit functions. +cmake_minimum_required(VERSION 3.1...3.15) project( Mesh_3_implicit_functions ) include( polyhedron_demo_macros ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Polyhedron/examples/Polyhedron/CMakeLists.txt b/Polyhedron/examples/Polyhedron/CMakeLists.txt index e5574f90c81..a4860a0c20e 100644 --- a/Polyhedron/examples/Polyhedron/CMakeLists.txt +++ b/Polyhedron/examples/Polyhedron/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polyhedron_Examples ) -cmake_minimum_required(VERSION 3.1) if(NOT POLICY CMP0070 AND POLICY CMP0053) # Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning. diff --git a/Polyhedron/test/Polyhedron/CMakeLists.txt b/Polyhedron/test/Polyhedron/CMakeLists.txt index 31d0d094a97..6a35171a29c 100644 --- a/Polyhedron/test/Polyhedron/CMakeLists.txt +++ b/Polyhedron/test/Polyhedron/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polyhedron_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Polyhedron_IO/demo/Polyhedron_IO/CMakeLists.txt b/Polyhedron_IO/demo/Polyhedron_IO/CMakeLists.txt index c87775195e5..642f5f5b4b1 100644 --- a/Polyhedron_IO/demo/Polyhedron_IO/CMakeLists.txt +++ b/Polyhedron_IO/demo/Polyhedron_IO/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polyhedron_IO_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Polyhedron_IO/examples/Polyhedron_IO/CMakeLists.txt b/Polyhedron_IO/examples/Polyhedron_IO/CMakeLists.txt index d2f8d510146..1de0b8a91f5 100644 --- a/Polyhedron_IO/examples/Polyhedron_IO/CMakeLists.txt +++ b/Polyhedron_IO/examples/Polyhedron_IO/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polyhedron_IO_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Polyhedron_IO/test/Polyhedron_IO/CMakeLists.txt b/Polyhedron_IO/test/Polyhedron_IO/CMakeLists.txt index 91a97ec855f..ac42c32b8d0 100644 --- a/Polyhedron_IO/test/Polyhedron_IO/CMakeLists.txt +++ b/Polyhedron_IO/test/Polyhedron_IO/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polyhedron_IO_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt b/Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt index 5ef3513ac7a..609cbec4045 100644 --- a/Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt +++ b/Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Polyline_simplification_2_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Polyline_simplification_2/examples/Polyline_simplification_2/CMakeLists.txt b/Polyline_simplification_2/examples/Polyline_simplification_2/CMakeLists.txt index db749400699..f0fb3f70fd4 100644 --- a/Polyline_simplification_2/examples/Polyline_simplification_2/CMakeLists.txt +++ b/Polyline_simplification_2/examples/Polyline_simplification_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polyline_simplification_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Polyline_simplification_2/test/Polyline_simplification_2/CMakeLists.txt b/Polyline_simplification_2/test/Polyline_simplification_2/CMakeLists.txt index 3430ed90e69..5f17ccc05da 100644 --- a/Polyline_simplification_2/test/Polyline_simplification_2/CMakeLists.txt +++ b/Polyline_simplification_2/test/Polyline_simplification_2/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Polyline_simplification_2_Tests ) -cmake_minimum_required(VERSION 3.1) diff --git a/Polynomial/examples/Polynomial/CMakeLists.txt b/Polynomial/examples/Polynomial/CMakeLists.txt index b71a6c04a11..c48b015fbd2 100644 --- a/Polynomial/examples/Polynomial/CMakeLists.txt +++ b/Polynomial/examples/Polynomial/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polynomial_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Polynomial/test/Polynomial/CMakeLists.txt b/Polynomial/test/Polynomial/CMakeLists.txt index e274a106b8d..5df0e9350a0 100644 --- a/Polynomial/test/Polynomial/CMakeLists.txt +++ b/Polynomial/test/Polynomial/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polynomial_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Polytope_distance_d/examples/Polytope_distance_d/CMakeLists.txt b/Polytope_distance_d/examples/Polytope_distance_d/CMakeLists.txt index 1b63b201100..0aa288958b5 100644 --- a/Polytope_distance_d/examples/Polytope_distance_d/CMakeLists.txt +++ b/Polytope_distance_d/examples/Polytope_distance_d/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polytope_distance_d_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Polytope_distance_d/test/Polytope_distance_d/CMakeLists.txt b/Polytope_distance_d/test/Polytope_distance_d/CMakeLists.txt index 4e015e31e20..d9e10bd47c3 100644 --- a/Polytope_distance_d/test/Polytope_distance_d/CMakeLists.txt +++ b/Polytope_distance_d/test/Polytope_distance_d/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Polytope_distance_d_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Principal_component_analysis/demo/Principal_component_analysis/CMakeLists.txt b/Principal_component_analysis/demo/Principal_component_analysis/CMakeLists.txt index 4c13d2781f5..128b250b8f1 100644 --- a/Principal_component_analysis/demo/Principal_component_analysis/CMakeLists.txt +++ b/Principal_component_analysis/demo/Principal_component_analysis/CMakeLists.txt @@ -1,8 +1,8 @@ # This is the CMake script for compiling the PCA demo. +cmake_minimum_required(VERSION 3.1...3.15) project( Principal_component_analysis_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Principal_component_analysis/examples/Principal_component_analysis/CMakeLists.txt b/Principal_component_analysis/examples/Principal_component_analysis/CMakeLists.txt index 832207a6daa..0518b6ea3cd 100644 --- a/Principal_component_analysis/examples/Principal_component_analysis/CMakeLists.txt +++ b/Principal_component_analysis/examples/Principal_component_analysis/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Principal_component_analysis_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Principal_component_analysis/test/Principal_component_analysis/CMakeLists.txt b/Principal_component_analysis/test/Principal_component_analysis/CMakeLists.txt index b7695c9965b..93abc4b5e32 100644 --- a/Principal_component_analysis/test/Principal_component_analysis/CMakeLists.txt +++ b/Principal_component_analysis/test/Principal_component_analysis/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Principal_component_analysis_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Profiling_tools/examples/Profiling_tools/CMakeLists.txt b/Profiling_tools/examples/Profiling_tools/CMakeLists.txt index f314d77d073..a6ceff687f1 100644 --- a/Profiling_tools/examples/Profiling_tools/CMakeLists.txt +++ b/Profiling_tools/examples/Profiling_tools/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Profiling_tools_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Profiling_tools/test/Profiling_tools/CMakeLists.txt b/Profiling_tools/test/Profiling_tools/CMakeLists.txt index b087980e759..516ea7993a5 100644 --- a/Profiling_tools/test/Profiling_tools/CMakeLists.txt +++ b/Profiling_tools/test/Profiling_tools/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Profiling_tools_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Property_map/examples/Property_map/CMakeLists.txt b/Property_map/examples/Property_map/CMakeLists.txt index 82384c7e7fb..19f1e6fa5ed 100644 --- a/Property_map/examples/Property_map/CMakeLists.txt +++ b/Property_map/examples/Property_map/CMakeLists.txt @@ -1,7 +1,7 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Property_map_Examples ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Property_map/test/Property_map/CMakeLists.txt b/Property_map/test/Property_map/CMakeLists.txt index 5208cf86184..610689246fa 100644 --- a/Property_map/test/Property_map/CMakeLists.txt +++ b/Property_map/test/Property_map/CMakeLists.txt @@ -1,8 +1,8 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Property_map_Tests ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/QP_solver/examples/QP_solver/CMakeLists.txt b/QP_solver/examples/QP_solver/CMakeLists.txt index 208ed0358ac..46c011aeed9 100644 --- a/QP_solver/examples/QP_solver/CMakeLists.txt +++ b/QP_solver/examples/QP_solver/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( QP_solver_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/QP_solver/test/QP_solver/CMakeLists.txt b/QP_solver/test/QP_solver/CMakeLists.txt index ec9ad49e801..b82ad8b0985 100644 --- a/QP_solver/test/QP_solver/CMakeLists.txt +++ b/QP_solver/test/QP_solver/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( QP_solver_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Random_numbers/test/Random_numbers/CMakeLists.txt b/Random_numbers/test/Random_numbers/CMakeLists.txt index 927421b6a3f..7f575e303ab 100644 --- a/Random_numbers/test/Random_numbers/CMakeLists.txt +++ b/Random_numbers/test/Random_numbers/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Random_numbers_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Ridges_3/examples/Ridges_3/CMakeLists.txt b/Ridges_3/examples/Ridges_3/CMakeLists.txt index b682835c270..c6409270728 100644 --- a/Ridges_3/examples/Ridges_3/CMakeLists.txt +++ b/Ridges_3/examples/Ridges_3/CMakeLists.txt @@ -1,7 +1,7 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Ridges_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET ) diff --git a/Ridges_3/test/Ridges_3/CMakeLists.txt b/Ridges_3/test/Ridges_3/CMakeLists.txt index 99a76fe4426..8ed993f8e6b 100644 --- a/Ridges_3/test/Ridges_3/CMakeLists.txt +++ b/Ridges_3/test/Ridges_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Ridges_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/STL_Extension/benchmark/compact_container_benchmark/CMakeLists.txt b/STL_Extension/benchmark/compact_container_benchmark/CMakeLists.txt index bb3785edbd3..4bfa4327eb0 100644 --- a/STL_Extension/benchmark/compact_container_benchmark/CMakeLists.txt +++ b/STL_Extension/benchmark/compact_container_benchmark/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Compact_container_benchmark ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/STL_Extension/benchmark/copy_n_benchmark/CMakeLists.txt b/STL_Extension/benchmark/copy_n_benchmark/CMakeLists.txt index 51f7a18b9eb..bd9affca7ab 100644 --- a/STL_Extension/benchmark/copy_n_benchmark/CMakeLists.txt +++ b/STL_Extension/benchmark/copy_n_benchmark/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( copy_n_benchmark_example ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/STL_Extension/examples/STL_Extension/CMakeLists.txt b/STL_Extension/examples/STL_Extension/CMakeLists.txt index 40753532e8a..8ec5a7c080e 100644 --- a/STL_Extension/examples/STL_Extension/CMakeLists.txt +++ b/STL_Extension/examples/STL_Extension/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( STL_Extension_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/STL_Extension/test/STL_Extension/CMakeLists.txt b/STL_Extension/test/STL_Extension/CMakeLists.txt index b7fb77d3d9d..419220ed841 100644 --- a/STL_Extension/test/STL_Extension/CMakeLists.txt +++ b/STL_Extension/test/STL_Extension/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( STL_Extension_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Scale_space_reconstruction_3/examples/Scale_space_reconstruction_3/CMakeLists.txt b/Scale_space_reconstruction_3/examples/Scale_space_reconstruction_3/CMakeLists.txt index bfa682995fa..bab0af3c5b1 100644 --- a/Scale_space_reconstruction_3/examples/Scale_space_reconstruction_3/CMakeLists.txt +++ b/Scale_space_reconstruction_3/examples/Scale_space_reconstruction_3/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Scale_space_reconstruction_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package( CGAL QUIET) diff --git a/Scripts/developer_scripts/cgal_create_release_with_cmake.cmake b/Scripts/developer_scripts/cgal_create_release_with_cmake.cmake index 66385cbc1a6..d70e17a3b4a 100644 --- a/Scripts/developer_scripts/cgal_create_release_with_cmake.cmake +++ b/Scripts/developer_scripts/cgal_create_release_with_cmake.cmake @@ -9,7 +9,7 @@ # TESTSUITE=indicate if the release is meant to be used by the testsuite, default if OFF # GPL_PACKAGE_LIST=path to a file containing the list of GPL packages to include in the release. If not provided all of them are. -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.1...3.15) function(process_package pkg) if(VERBOSE) diff --git a/SearchStructures/examples/RangeSegmentTrees/CMakeLists.txt b/SearchStructures/examples/RangeSegmentTrees/CMakeLists.txt index 8f06d64b9d5..090d14f7e7a 100644 --- a/SearchStructures/examples/RangeSegmentTrees/CMakeLists.txt +++ b/SearchStructures/examples/RangeSegmentTrees/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( RangeSegmentTrees_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/SearchStructures/test/RangeSegmentTrees/CMakeLists.txt b/SearchStructures/test/RangeSegmentTrees/CMakeLists.txt index 6b83c29ab11..f3530741ce2 100644 --- a/SearchStructures/test/RangeSegmentTrees/CMakeLists.txt +++ b/SearchStructures/test/RangeSegmentTrees/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( RangeSegmentTrees_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Segment_Delaunay_graph_2/benchmark/Segment_Delaunay_graph_2/CMakeLists.txt b/Segment_Delaunay_graph_2/benchmark/Segment_Delaunay_graph_2/CMakeLists.txt index 2ab90937fb8..38035c853e7 100644 --- a/Segment_Delaunay_graph_2/benchmark/Segment_Delaunay_graph_2/CMakeLists.txt +++ b/Segment_Delaunay_graph_2/benchmark/Segment_Delaunay_graph_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Segment_Delaunay_graph_2_example ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Segment_Delaunay_graph_2/examples/Segment_Delaunay_graph_2/CMakeLists.txt b/Segment_Delaunay_graph_2/examples/Segment_Delaunay_graph_2/CMakeLists.txt index 23695a3e08f..ef8e579b411 100644 --- a/Segment_Delaunay_graph_2/examples/Segment_Delaunay_graph_2/CMakeLists.txt +++ b/Segment_Delaunay_graph_2/examples/Segment_Delaunay_graph_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Segment_Delaunay_graph_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/CMakeLists.txt b/Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/CMakeLists.txt index fd781f8a8cf..0b91ac968f3 100644 --- a/Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/CMakeLists.txt +++ b/Segment_Delaunay_graph_2/test/Segment_Delaunay_graph_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Segment_Delaunay_graph_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Segment_Delaunay_graph_Linf_2/benchmark/Segment_Delaunay_graph_Linf_2/CMakeLists.txt b/Segment_Delaunay_graph_Linf_2/benchmark/Segment_Delaunay_graph_Linf_2/CMakeLists.txt index 71ed0203b7f..60bea9ef71c 100644 --- a/Segment_Delaunay_graph_Linf_2/benchmark/Segment_Delaunay_graph_Linf_2/CMakeLists.txt +++ b/Segment_Delaunay_graph_Linf_2/benchmark/Segment_Delaunay_graph_Linf_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Segment_Delaunay_graph_2_example ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Segment_Delaunay_graph_Linf_2/examples/Segment_Delaunay_graph_Linf_2/CMakeLists.txt b/Segment_Delaunay_graph_Linf_2/examples/Segment_Delaunay_graph_Linf_2/CMakeLists.txt index 553dba5a125..c6034d62225 100644 --- a/Segment_Delaunay_graph_Linf_2/examples/Segment_Delaunay_graph_Linf_2/CMakeLists.txt +++ b/Segment_Delaunay_graph_Linf_2/examples/Segment_Delaunay_graph_Linf_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Segment_Delaunay_graph_Linf_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/CMakeLists.txt b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/CMakeLists.txt index 29802b5b30c..16164766a1b 100644 --- a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/CMakeLists.txt +++ b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Segment_Delaunay_graph_Linf_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Set_movable_separability_2/examples/Set_movable_separability_2/CMakeLists.txt b/Set_movable_separability_2/examples/Set_movable_separability_2/CMakeLists.txt index c37b85c338c..dd91ba64e0f 100644 --- a/Set_movable_separability_2/examples/Set_movable_separability_2/CMakeLists.txt +++ b/Set_movable_separability_2/examples/Set_movable_separability_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Set_movable_separability_2_Examples ) -cmake_minimum_required(VERSION 3.1) list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_generalized_initializers has_cpp11) if (has_cpp11 LESS 0) diff --git a/Set_movable_separability_2/test/Set_movable_separability_2/CMakeLists.txt b/Set_movable_separability_2/test/Set_movable_separability_2/CMakeLists.txt index a2a4916572d..37fb88505b2 100644 --- a/Set_movable_separability_2/test/Set_movable_separability_2/CMakeLists.txt +++ b/Set_movable_separability_2/test/Set_movable_separability_2/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Set_movable_separability_2_Tests ) -cmake_minimum_required(VERSION 3.1) if (RUNNING_CGAL_AUTO_TEST) # Just to avoid a warning from CMake when that variable is set on the command line... diff --git a/Shape_detection/benchmark/Shape_detection/CMakeLists.txt b/Shape_detection/benchmark/Shape_detection/CMakeLists.txt index f314a33fe05..f2c7bf19d77 100644 --- a/Shape_detection/benchmark/Shape_detection/CMakeLists.txt +++ b/Shape_detection/benchmark/Shape_detection/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script. # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project(Shape_detection_Benchmarks) -cmake_minimum_required(VERSION 2.8.10) set(CMAKE_CXX_STANDARD 11) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Shape_detection/examples/Shape_detection/CMakeLists.txt b/Shape_detection/examples/Shape_detection/CMakeLists.txt index edc7922cf5d..d1c49d4986e 100644 --- a/Shape_detection/examples/Shape_detection/CMakeLists.txt +++ b/Shape_detection/examples/Shape_detection/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script. # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project(Shape_detection_Examples) -cmake_minimum_required(VERSION 2.8.10) set(CMAKE_CXX_STANDARD 11) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Shape_detection/test/Shape_detection/CMakeLists.txt b/Shape_detection/test/Shape_detection/CMakeLists.txt index a2489d3ac27..67551a95348 100644 --- a/Shape_detection/test/Shape_detection/CMakeLists.txt +++ b/Shape_detection/test/Shape_detection/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script. # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project(Shape_detection_Tests) -cmake_minimum_required(VERSION 2.8.10) set(CMAKE_CXX_STANDARD 11) find_package(CGAL QUIET COMPONENTS Core) diff --git a/Skin_surface_3/examples/Skin_surface_3/CMakeLists.txt b/Skin_surface_3/examples/Skin_surface_3/CMakeLists.txt index eb188b326f1..b5f2f268ff6 100644 --- a/Skin_surface_3/examples/Skin_surface_3/CMakeLists.txt +++ b/Skin_surface_3/examples/Skin_surface_3/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Skin_surface_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL) diff --git a/Skin_surface_3/test/Skin_surface_3/CMakeLists.txt b/Skin_surface_3/test/Skin_surface_3/CMakeLists.txt index 36a09ddce8b..d3a5d2acf28 100644 --- a/Skin_surface_3/test/Skin_surface_3/CMakeLists.txt +++ b/Skin_surface_3/test/Skin_surface_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Skin_surface_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Snap_rounding_2/examples/Snap_rounding_2/CMakeLists.txt b/Snap_rounding_2/examples/Snap_rounding_2/CMakeLists.txt index 224ff142065..af3e2569ac0 100644 --- a/Snap_rounding_2/examples/Snap_rounding_2/CMakeLists.txt +++ b/Snap_rounding_2/examples/Snap_rounding_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Snap_rounding_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Snap_rounding_2/test/Snap_rounding_2/CMakeLists.txt b/Snap_rounding_2/test/Snap_rounding_2/CMakeLists.txt index 13598b9fe4c..909b2060625 100644 --- a/Snap_rounding_2/test/Snap_rounding_2/CMakeLists.txt +++ b/Snap_rounding_2/test/Snap_rounding_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Snap_rounding_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Solver_interface/examples/Solver_interface/CMakeLists.txt b/Solver_interface/examples/Solver_interface/CMakeLists.txt index a81c8dd0ac7..348e6697fbf 100644 --- a/Solver_interface/examples/Solver_interface/CMakeLists.txt +++ b/Solver_interface/examples/Solver_interface/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Solver_interface_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Spatial_searching/benchmark/Spatial_searching/CMakeLists.txt b/Spatial_searching/benchmark/Spatial_searching/CMakeLists.txt index 51ab416ab53..ca8157f8a8e 100644 --- a/Spatial_searching/benchmark/Spatial_searching/CMakeLists.txt +++ b/Spatial_searching/benchmark/Spatial_searching/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Spatial_searching_ ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Spatial_searching/benchmark/Spatial_searching/tools/CMakeLists.txt b/Spatial_searching/benchmark/Spatial_searching/tools/CMakeLists.txt index a332558dc48..285b4853c31 100644 --- a/Spatial_searching/benchmark/Spatial_searching/tools/CMakeLists.txt +++ b/Spatial_searching/benchmark/Spatial_searching/tools/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( tools_ ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Spatial_searching/examples/Spatial_searching/CMakeLists.txt b/Spatial_searching/examples/Spatial_searching/CMakeLists.txt index 5c66f23a3ee..c4a335960b5 100644 --- a/Spatial_searching/examples/Spatial_searching/CMakeLists.txt +++ b/Spatial_searching/examples/Spatial_searching/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Spatial_searching_Examples ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components diff --git a/Spatial_searching/test/Spatial_searching/CMakeLists.txt b/Spatial_searching/test/Spatial_searching/CMakeLists.txt index 90cc940fc5b..736d25c1155 100644 --- a/Spatial_searching/test/Spatial_searching/CMakeLists.txt +++ b/Spatial_searching/test/Spatial_searching/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Spatial_searching_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Spatial_sorting/benchmark/Spatial_sorting/CMakeLists.txt b/Spatial_sorting/benchmark/Spatial_sorting/CMakeLists.txt index 5bf9e578e10..18e9aa776db 100644 --- a/Spatial_sorting/benchmark/Spatial_sorting/CMakeLists.txt +++ b/Spatial_sorting/benchmark/Spatial_sorting/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Spatial_sorting_ ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Spatial_sorting/examples/Spatial_sorting/CMakeLists.txt b/Spatial_sorting/examples/Spatial_sorting/CMakeLists.txt index 77db71cd55d..df5f623e1ba 100644 --- a/Spatial_sorting/examples/Spatial_sorting/CMakeLists.txt +++ b/Spatial_sorting/examples/Spatial_sorting/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Spatial_sorting_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Spatial_sorting/test/Spatial_sorting/CMakeLists.txt b/Spatial_sorting/test/Spatial_sorting/CMakeLists.txt index 98ded58f5b4..c8901de1414 100644 --- a/Spatial_sorting/test/Spatial_sorting/CMakeLists.txt +++ b/Spatial_sorting/test/Spatial_sorting/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Spatial_sorting_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Straight_skeleton_2/examples/Straight_skeleton_2/CMakeLists.txt b/Straight_skeleton_2/examples/Straight_skeleton_2/CMakeLists.txt index 732fb4b90bc..b873129ef94 100644 --- a/Straight_skeleton_2/examples/Straight_skeleton_2/CMakeLists.txt +++ b/Straight_skeleton_2/examples/Straight_skeleton_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Straight_skeleton_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Straight_skeleton_2/test/Straight_skeleton_2/CMakeLists.txt b/Straight_skeleton_2/test/Straight_skeleton_2/CMakeLists.txt index 2272303a11b..070f91fbd69 100644 --- a/Straight_skeleton_2/test/Straight_skeleton_2/CMakeLists.txt +++ b/Straight_skeleton_2/test/Straight_skeleton_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Straight_skeleton_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Stream_lines_2/examples/Stream_lines_2/CMakeLists.txt b/Stream_lines_2/examples/Stream_lines_2/CMakeLists.txt index c12378e2b4b..df241d013bb 100644 --- a/Stream_lines_2/examples/Stream_lines_2/CMakeLists.txt +++ b/Stream_lines_2/examples/Stream_lines_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Stream_lines_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Stream_lines_2/test/Stream_lines_2/CMakeLists.txt b/Stream_lines_2/test/Stream_lines_2/CMakeLists.txt index 3349e59b68a..a4be4c9d3c9 100644 --- a/Stream_lines_2/test/Stream_lines_2/CMakeLists.txt +++ b/Stream_lines_2/test/Stream_lines_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Stream_lines_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Stream_support/benchmark/Stream_support/CMakeLists.txt b/Stream_support/benchmark/Stream_support/CMakeLists.txt index 3e1065efa78..f72b2f0f48b 100644 --- a/Stream_support/benchmark/Stream_support/CMakeLists.txt +++ b/Stream_support/benchmark/Stream_support/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Stream_support ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components diff --git a/Stream_support/examples/Stream_support/CMakeLists.txt b/Stream_support/examples/Stream_support/CMakeLists.txt index 69d953e830e..bb12e6cd1e4 100644 --- a/Stream_support/examples/Stream_support/CMakeLists.txt +++ b/Stream_support/examples/Stream_support/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Stream_support_Examples) -cmake_minimum_required(VERSION 2.8.11) # CGAL and its components find_package( CGAL QUIET) diff --git a/Stream_support/test/Stream_support/CMakeLists.txt b/Stream_support/test/Stream_support/CMakeLists.txt index 5eb7092e2b7..15bf8c30ac4 100644 --- a/Stream_support/test/Stream_support/CMakeLists.txt +++ b/Stream_support/test/Stream_support/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Stream_support_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Subdivision_method_3/examples/Subdivision_method_3/CMakeLists.txt b/Subdivision_method_3/examples/Subdivision_method_3/CMakeLists.txt index eb57c8246dc..b8fa8e47c50 100644 --- a/Subdivision_method_3/examples/Subdivision_method_3/CMakeLists.txt +++ b/Subdivision_method_3/examples/Subdivision_method_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Subdivision_method_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Subdivision_method_3/test/Subdivision_method_3/CMakeLists.txt b/Subdivision_method_3/test/Subdivision_method_3/CMakeLists.txt index 87cf9f130ba..74338524d72 100644 --- a/Subdivision_method_3/test/Subdivision_method_3/CMakeLists.txt +++ b/Subdivision_method_3/test/Subdivision_method_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Subdivision_method_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesh/benchmark/CMakeLists.txt b/Surface_mesh/benchmark/CMakeLists.txt index 8d376836e91..8ca9774509b 100644 --- a/Surface_mesh/benchmark/CMakeLists.txt +++ b/Surface_mesh/benchmark/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project(Surface_mesh_performance) -cmake_minimum_required(VERSION 3.1) find_package(CGAL REQUIRED) diff --git a/Surface_mesh/examples/Surface_mesh/CMakeLists.txt b/Surface_mesh/examples/Surface_mesh/CMakeLists.txt index 6ad86b00d0d..6f5b413973d 100644 --- a/Surface_mesh/examples/Surface_mesh/CMakeLists.txt +++ b/Surface_mesh/examples/Surface_mesh/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_Examples ) -cmake_minimum_required(VERSION 3.1) if(POLICY CMP0053) # Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning. diff --git a/Surface_mesh/test/Surface_mesh/CMakeLists.txt b/Surface_mesh/test/Surface_mesh/CMakeLists.txt index 07743df73f9..8371685d73b 100644 --- a/Surface_mesh/test/Surface_mesh/CMakeLists.txt +++ b/Surface_mesh/test/Surface_mesh/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesh_approximation/benchmark/Surface_mesh_approximation/CMakeLists.txt b/Surface_mesh_approximation/benchmark/Surface_mesh_approximation/CMakeLists.txt index 586e65d7774..728c672fded 100644 --- a/Surface_mesh_approximation/benchmark/Surface_mesh_approximation/CMakeLists.txt +++ b/Surface_mesh_approximation/benchmark/Surface_mesh_approximation/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_approximation_Benchmarks ) -cmake_minimum_required(VERSION 2.8.11) # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Surface_mesh_approximation/examples/Surface_mesh_approximation/CMakeLists.txt b/Surface_mesh_approximation/examples/Surface_mesh_approximation/CMakeLists.txt index d4efe96cf06..e3b19a50cad 100644 --- a/Surface_mesh_approximation/examples/Surface_mesh_approximation/CMakeLists.txt +++ b/Surface_mesh_approximation/examples/Surface_mesh_approximation/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_approximation_Examples ) -cmake_minimum_required(VERSION 2.8.11) # CGAL and its components find_package( CGAL QUIET) diff --git a/Surface_mesh_approximation/test/Surface_mesh_approximation/CMakeLists.txt b/Surface_mesh_approximation/test/Surface_mesh_approximation/CMakeLists.txt index 96ce72ae1cd..caac2a6f132 100644 --- a/Surface_mesh_approximation/test/Surface_mesh_approximation/CMakeLists.txt +++ b/Surface_mesh_approximation/test/Surface_mesh_approximation/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_approximation_Tests ) -cmake_minimum_required(VERSION 2.8.11) # CGAL and its components find_package( CGAL QUIET) diff --git a/Surface_mesh_deformation/benchmark/Surface_mesh_deformation/optimal_rotation/CMakeLists.txt b/Surface_mesh_deformation/benchmark/Surface_mesh_deformation/optimal_rotation/CMakeLists.txt index cd75dcec4e3..67a2731cdc5 100644 --- a/Surface_mesh_deformation/benchmark/Surface_mesh_deformation/optimal_rotation/CMakeLists.txt +++ b/Surface_mesh_deformation/benchmark/Surface_mesh_deformation/optimal_rotation/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( benchmark_for_closest_rotation ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Surface_mesh_deformation/demo/Surface_mesh_deformation/CMakeLists.txt b/Surface_mesh_deformation/demo/Surface_mesh_deformation/CMakeLists.txt index 17b6de5841c..b90af134997 100644 --- a/Surface_mesh_deformation/demo/Surface_mesh_deformation/CMakeLists.txt +++ b/Surface_mesh_deformation/demo/Surface_mesh_deformation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_deformation_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Surface_mesh_deformation/examples/Surface_mesh_deformation/CMakeLists.txt b/Surface_mesh_deformation/examples/Surface_mesh_deformation/CMakeLists.txt index ceac6ce44de..aa90c5d271d 100644 --- a/Surface_mesh_deformation/examples/Surface_mesh_deformation/CMakeLists.txt +++ b/Surface_mesh_deformation/examples/Surface_mesh_deformation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_deformation_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesh_deformation/test/Surface_mesh_deformation/CMakeLists.txt b/Surface_mesh_deformation/test/Surface_mesh_deformation/CMakeLists.txt index a857d6c00e8..54163d64df1 100644 --- a/Surface_mesh_deformation/test/Surface_mesh_deformation/CMakeLists.txt +++ b/Surface_mesh_deformation/test/Surface_mesh_deformation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_deformation_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/CMakeLists.txt b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/CMakeLists.txt index c6d2227aec4..62640e3b6a9 100644 --- a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/CMakeLists.txt +++ b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/CMakeLists.txt @@ -1,9 +1,9 @@ # This is the CMake script for compiling this folder. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_parameterization_Examples ) -cmake_minimum_required(VERSION 3.1) # Find CGAL diff --git a/Surface_mesh_parameterization/test/Surface_mesh_parameterization/CMakeLists.txt b/Surface_mesh_parameterization/test/Surface_mesh_parameterization/CMakeLists.txt index 2375ad56670..4021770c494 100644 --- a/Surface_mesh_parameterization/test/Surface_mesh_parameterization/CMakeLists.txt +++ b/Surface_mesh_parameterization/test/Surface_mesh_parameterization/CMakeLists.txt @@ -1,9 +1,9 @@ # This is the CMake script for compiling this folder. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_parameterization_Tests ) -cmake_minimum_required(VERSION 3.1) # Find CGAL diff --git a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/CMakeLists.txt b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/CMakeLists.txt index be1faa2c864..79bb821c35e 100644 --- a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/CMakeLists.txt +++ b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_cmake_script_with_options # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_segmentation_Examples ) -cmake_minimum_required(VERSION 3.1) diff --git a/Surface_mesh_segmentation/test/Surface_mesh_segmentation/CMakeLists.txt b/Surface_mesh_segmentation/test/Surface_mesh_segmentation/CMakeLists.txt index 677d2711e22..49ee7055e9e 100644 --- a/Surface_mesh_segmentation/test/Surface_mesh_segmentation/CMakeLists.txt +++ b/Surface_mesh_segmentation/test/Surface_mesh_segmentation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_segmentation_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesh_shortest_path/examples/Surface_mesh_shortest_path/CMakeLists.txt b/Surface_mesh_shortest_path/examples/Surface_mesh_shortest_path/CMakeLists.txt index edd21e2855a..6b757a109e9 100644 --- a/Surface_mesh_shortest_path/examples/Surface_mesh_shortest_path/CMakeLists.txt +++ b/Surface_mesh_shortest_path/examples/Surface_mesh_shortest_path/CMakeLists.txt @@ -3,9 +3,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_shortest_path_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt b/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt index 8b70d2db06f..f018de6f17b 100644 --- a/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt +++ b/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.1...3.13) +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_shortest_path_Tests ) find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core) diff --git a/Surface_mesh_simplification/examples/Surface_mesh_simplification/CMakeLists.txt b/Surface_mesh_simplification/examples/Surface_mesh_simplification/CMakeLists.txt index 1090de74ac5..779611b831a 100644 --- a/Surface_mesh_simplification/examples/Surface_mesh_simplification/CMakeLists.txt +++ b/Surface_mesh_simplification/examples/Surface_mesh_simplification/CMakeLists.txt @@ -1,10 +1,10 @@ # Created by the script cgal_create_cmake_script_with_options # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_simplification_Examples ) -cmake_minimum_required(VERSION 3.1) diff --git a/Surface_mesh_simplification/test/Surface_mesh_simplification/CMakeLists.txt b/Surface_mesh_simplification/test/Surface_mesh_simplification/CMakeLists.txt index b7b1999faa4..245bbdb83e5 100644 --- a/Surface_mesh_simplification/test/Surface_mesh_simplification/CMakeLists.txt +++ b/Surface_mesh_simplification/test/Surface_mesh_simplification/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_simplification_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesh_skeletonization/benchmark/Surface_mesh_skeletonization/CMakeLists.txt b/Surface_mesh_skeletonization/benchmark/Surface_mesh_skeletonization/CMakeLists.txt index a5b04d07df7..d73305b0549 100644 --- a/Surface_mesh_skeletonization/benchmark/Surface_mesh_skeletonization/CMakeLists.txt +++ b/Surface_mesh_skeletonization/benchmark/Surface_mesh_skeletonization/CMakeLists.txt @@ -1,13 +1,13 @@ # Created by the script cgal_create_cmake_script_with_options # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Mean_curvature_skeleton ) #SET(CMAKE_BUILD_TYPE "Debug") #SET(GCC_COVERAGE_COMPILE_FLAGS "-fprofile-arcs -ftest-coverage") #SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}" ) -cmake_minimum_required(VERSION 3.1) # CGAL and its components diff --git a/Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/CMakeLists.txt b/Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/CMakeLists.txt index 9f711c7c4f6..7327aafc329 100644 --- a/Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/CMakeLists.txt +++ b/Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_skeletonization_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesh_skeletonization/test/Surface_mesh_skeletonization/CMakeLists.txt b/Surface_mesh_skeletonization/test/Surface_mesh_skeletonization/CMakeLists.txt index 8aed6ec2d5a..fdab781a1ca 100644 --- a/Surface_mesh_skeletonization/test/Surface_mesh_skeletonization/CMakeLists.txt +++ b/Surface_mesh_skeletonization/test/Surface_mesh_skeletonization/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesh_skeletonization_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_mesher/demo/Surface_mesher/CMakeLists.txt b/Surface_mesher/demo/Surface_mesher/CMakeLists.txt index b702b4bb27f..c1e5b5a4a5f 100644 --- a/Surface_mesher/demo/Surface_mesher/CMakeLists.txt +++ b/Surface_mesher/demo/Surface_mesher/CMakeLists.txt @@ -1,8 +1,8 @@ set ( prj Surface_mesher ) +cmake_minimum_required(VERSION 3.1...3.15) project ( Surface_mesher_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Surface_mesher/examples/Surface_mesher/CMakeLists.txt b/Surface_mesher/examples/Surface_mesher/CMakeLists.txt index 3446a487e88..645859a9fa1 100644 --- a/Surface_mesher/examples/Surface_mesher/CMakeLists.txt +++ b/Surface_mesher/examples/Surface_mesher/CMakeLists.txt @@ -1,9 +1,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesher_Examples ) -cmake_minimum_required(VERSION 3.1) if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) diff --git a/Surface_mesher/test/Surface_mesher/CMakeLists.txt b/Surface_mesher/test/Surface_mesher/CMakeLists.txt index dcc5829c499..48b2e73a09c 100644 --- a/Surface_mesher/test/Surface_mesher/CMakeLists.txt +++ b/Surface_mesher/test/Surface_mesher/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_mesher_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Surface_sweep_2/examples/Surface_sweep_2/CMakeLists.txt b/Surface_sweep_2/examples/Surface_sweep_2/CMakeLists.txt index 06dad81f73f..290fd852dc6 100644 --- a/Surface_sweep_2/examples/Surface_sweep_2/CMakeLists.txt +++ b/Surface_sweep_2/examples/Surface_sweep_2/CMakeLists.txt @@ -1,19 +1,9 @@ # Created by the script cgal_create_CMakeLists # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_sweep_2_Examples ) - -cmake_minimum_required(VERSION 3.1) -if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6) - if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3) - cmake_policy(VERSION 2.8.4) - else() - cmake_policy(VERSION 2.6) - endif() -endif() - - # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Surface_sweep_2/test/Surface_sweep_2/CMakeLists.txt b/Surface_sweep_2/test/Surface_sweep_2/CMakeLists.txt index 7165020fb83..788981308c7 100644 --- a/Surface_sweep_2/test/Surface_sweep_2/CMakeLists.txt +++ b/Surface_sweep_2/test/Surface_sweep_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Surface_sweep_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/TDS_2/test/TDS_2/CMakeLists.txt b/TDS_2/test/TDS_2/CMakeLists.txt index 93b60a87707..2df25a93b59 100644 --- a/TDS_2/test/TDS_2/CMakeLists.txt +++ b/TDS_2/test/TDS_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( TDS_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/TDS_3/examples/TDS_3/CMakeLists.txt b/TDS_3/examples/TDS_3/CMakeLists.txt index c3be4897d87..d0e2a5f766c 100644 --- a/TDS_3/examples/TDS_3/CMakeLists.txt +++ b/TDS_3/examples/TDS_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( TDS_3_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/TDS_3/test/TDS_3/CMakeLists.txt b/TDS_3/test/TDS_3/CMakeLists.txt index 4d8b2ce5862..0253c40548c 100644 --- a/TDS_3/test/TDS_3/CMakeLists.txt +++ b/TDS_3/test/TDS_3/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( TDS_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Three/demo/Three/CMakeLists.txt b/Three/demo/Three/CMakeLists.txt index b8a2631a535..65e6ee0b3ad 100644 --- a/Three/demo/Three/CMakeLists.txt +++ b/Three/demo/Three/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Three_Demo ) -cmake_minimum_required(VERSION 3.1) set(CMAKE_CXX_STANDARD 14) diff --git a/Three/demo/Three/Example_plugin/CMakeLists.txt b/Three/demo/Three/Example_plugin/CMakeLists.txt index 15d708e4137..421687cbfaa 100644 --- a/Three/demo/Three/Example_plugin/CMakeLists.txt +++ b/Three/demo/Three/Example_plugin/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Example_plugin ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Triangulation/applications/Triangulation/CMakeLists.txt b/Triangulation/applications/Triangulation/CMakeLists.txt index 4955332d74e..f95f8c19f46 100644 --- a/Triangulation/applications/Triangulation/CMakeLists.txt +++ b/Triangulation/applications/Triangulation/CMakeLists.txt @@ -1,21 +1,9 @@ # Created by the script cgal_create_cmake_script_with_options # This is the CMake script for compiling a set of CGAL applications. +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_apps ) - -cmake_minimum_required(VERSION 3.1) -if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6) - if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3) - cmake_policy(VERSION 2.8.4) - else() - cmake_policy(VERSION 2.6) - endif() -endif() - -set( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true ) - - # CGAL and its components find_package( CGAL QUIET COMPONENTS ) diff --git a/Triangulation/benchmark/Triangulation/CMakeLists.txt b/Triangulation/benchmark/Triangulation/CMakeLists.txt index 8daf709e47b..f82e906db3d 100644 --- a/Triangulation/benchmark/Triangulation/CMakeLists.txt +++ b/Triangulation/benchmark/Triangulation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_benchmark ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET COMPONENTS Core ) diff --git a/Triangulation/examples/Triangulation/CMakeLists.txt b/Triangulation/examples/Triangulation/CMakeLists.txt index 741f732649b..69eacb3a05b 100644 --- a/Triangulation/examples/Triangulation/CMakeLists.txt +++ b/Triangulation/examples/Triangulation/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_Examples ) -cmake_minimum_required(VERSION 3.1) if(CMAKE_COMPILER_IS_GNUCCX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4) message(STATUS "NOTICE: this directory requires a version of gcc >= 4.4, and will not be compiled.") diff --git a/Triangulation/test/Triangulation/CMakeLists.txt b/Triangulation/test/Triangulation/CMakeLists.txt index 67ea3dc2a8b..49054feffce 100644 --- a/Triangulation/test/Triangulation/CMakeLists.txt +++ b/Triangulation/test/Triangulation/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_Tests ) -cmake_minimum_required(VERSION 3.1) if(CMAKE_COMPILER_IS_GNUCCX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4) message(STATUS "NOTICE: this directory requires a version of gcc >= 4.4, and will not be compiled.") diff --git a/Triangulation_2/examples/Triangulation_2/CMakeLists.txt b/Triangulation_2/examples/Triangulation_2/CMakeLists.txt index 20ef6aa9331..4911f1d9872 100644 --- a/Triangulation_2/examples/Triangulation_2/CMakeLists.txt +++ b/Triangulation_2/examples/Triangulation_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_2_Examples ) -cmake_minimum_required(VERSION 3.1) if(NOT POLICY CMP0070 AND POLICY CMP0053) # Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning. diff --git a/Triangulation_2/test/Triangulation_2/CMakeLists.txt b/Triangulation_2/test/Triangulation_2/CMakeLists.txt index 1441e226126..6599888b5aa 100644 --- a/Triangulation_2/test/Triangulation_2/CMakeLists.txt +++ b/Triangulation_2/test/Triangulation_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Triangulation_3/demo/Triangulation_3/CMakeLists.txt b/Triangulation_3/demo/Triangulation_3/CMakeLists.txt index e3d3fe6d5ba..aca144a19b3 100644 --- a/Triangulation_3/demo/Triangulation_3/CMakeLists.txt +++ b/Triangulation_3/demo/Triangulation_3/CMakeLists.txt @@ -1,9 +1,9 @@ # Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project (Triangulation_3_Demo) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Triangulation_3/demo/Triangulation_3_Geomview_demos/CMakeLists.txt b/Triangulation_3/demo/Triangulation_3_Geomview_demos/CMakeLists.txt index 20e8bf1d3b2..2e06bf1dc9c 100644 --- a/Triangulation_3/demo/Triangulation_3_Geomview_demos/CMakeLists.txt +++ b/Triangulation_3/demo/Triangulation_3_Geomview_demos/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_3_Geomview_demos_Demo ) -cmake_minimum_required(VERSION 3.1) 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) diff --git a/Triangulation_3/examples/Triangulation_3/CMakeLists.txt b/Triangulation_3/examples/Triangulation_3/CMakeLists.txt index 121d27795ca..390022efe04 100644 --- a/Triangulation_3/examples/Triangulation_3/CMakeLists.txt +++ b/Triangulation_3/examples/Triangulation_3/CMakeLists.txt @@ -1,6 +1,6 @@ +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_3_Examples ) -cmake_minimum_required(VERSION 3.1) if(NOT POLICY CMP0070 AND POLICY CMP0053) # Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning. diff --git a/Triangulation_3/test/Triangulation_3/CMakeLists.txt b/Triangulation_3/test/Triangulation_3/CMakeLists.txt index 53e46c63ba4..0fdbcfc1d4e 100644 --- a/Triangulation_3/test/Triangulation_3/CMakeLists.txt +++ b/Triangulation_3/test/Triangulation_3/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Triangulation_3_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Union_find/test/Union_find/CMakeLists.txt b/Union_find/test/Union_find/CMakeLists.txt index 3894840ebee..fc2ae2c9189 100644 --- a/Union_find/test/Union_find/CMakeLists.txt +++ b/Union_find/test/Union_find/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Union_find_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Visibility_2/examples/Visibility_2/CMakeLists.txt b/Visibility_2/examples/Visibility_2/CMakeLists.txt index 68efc6b823d..0510897b193 100644 --- a/Visibility_2/examples/Visibility_2/CMakeLists.txt +++ b/Visibility_2/examples/Visibility_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Visibility_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Visibility_2/test/Visibility_2/CMakeLists.txt b/Visibility_2/test/Visibility_2/CMakeLists.txt index 211276c3e2a..eafdc9bced7 100644 --- a/Visibility_2/test/Visibility_2/CMakeLists.txt +++ b/Visibility_2/test/Visibility_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Visibility_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Voronoi_diagram_2/examples/Voronoi_diagram_2/CMakeLists.txt b/Voronoi_diagram_2/examples/Voronoi_diagram_2/CMakeLists.txt index 92893d16599..2741d391aec 100644 --- a/Voronoi_diagram_2/examples/Voronoi_diagram_2/CMakeLists.txt +++ b/Voronoi_diagram_2/examples/Voronoi_diagram_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Voronoi_diagram_2_Examples ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET) diff --git a/Voronoi_diagram_2/test/Voronoi_diagram_2/CMakeLists.txt b/Voronoi_diagram_2/test/Voronoi_diagram_2/CMakeLists.txt index 6f57717084a..e0fc05a700f 100644 --- a/Voronoi_diagram_2/test/Voronoi_diagram_2/CMakeLists.txt +++ b/Voronoi_diagram_2/test/Voronoi_diagram_2/CMakeLists.txt @@ -2,9 +2,9 @@ # This is the CMake script for compiling a CGAL application. +cmake_minimum_required(VERSION 3.1...3.15) project( Voronoi_diagram_2_Tests ) -cmake_minimum_required(VERSION 3.1) find_package(CGAL QUIET)