Skip to content

Commit 80aec6e

Browse files
committed
assume CMake>=3.22 (as documented in the CGAL manual)
1 parent 4915f4b commit 80aec6e

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Installation/lib/cmake/CGAL/CGALConfig.cmake

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This file is the CGALConfig.cmake for a header-only CGAL installation
33
#
44

5+
cmake_minimum_required(VERSION 3.22...3.31)
6+
57
# For CGAL_CreateSingleSourceCGALProgram.cmake
68
set( CGAL_REQUESTED_COMPONENTS ${CGAL_FIND_COMPONENTS} )
79

@@ -10,11 +12,7 @@ set(CGAL_LIBRARIES CGAL)
1012
# Resolve symlinks before extracting the directory so that the subsequent
1113
# DIRECTORY walk produces a correct CGAL_ROOT (e.g. /lib -> /usr/lib on
1214
# Arch Linux). See https://github.com/CGAL/cgal/issues/8521
13-
if(NOT CMAKE_VERSION VERSION_LESS 3.19)
14-
file(REAL_PATH "${CMAKE_CURRENT_LIST_FILE}" _cgal_config_realpath)
15-
else()
16-
get_filename_component(_cgal_config_realpath "${CMAKE_CURRENT_LIST_FILE}" REALPATH)
17-
endif()
15+
file(REAL_PATH "${CMAKE_CURRENT_LIST_FILE}" _cgal_config_realpath)
1816
get_filename_component(CGAL_CONFIG_DIR "${_cgal_config_realpath}" DIRECTORY)
1917

2018
function(cgal_detect_branch_build VAR_NAME)

0 commit comments

Comments
 (0)