Skip to content

Commit d675a05

Browse files
authored
Require CMake 3.16
With CMake 4 compatibility with CMake 3.5 was dropped and 3.10 deprecated. Use a reasonably new lower bound based on Ubuntu 20
1 parent d8808f5 commit d675a05

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

CMakeLists.txt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Copyright 2019 Alexander Grund
1+
# Copyright 2019-2025 Alexander Grund
22
# Distributed under the Boost Software License, Version 1.0.
33
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
44

5-
cmake_minimum_required(VERSION 3.8)
5+
cmake_minimum_required(VERSION 3.16..3.20)
66
project(turtle VERSION 2.0.0 LANGUAGES CXX)
77

88
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
@@ -67,14 +67,7 @@ if(TURTLE_INSTALL)
6767
INSTALL_DESTINATION ${configInstallDestination}
6868
)
6969

70-
if(NOT CMAKE_VERSION VERSION_LESS 3.14)
71-
write_basic_package_version_file(${versionFile} COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT)
72-
else()
73-
set(OLD_CMAKE_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P})
74-
set(CMAKE_SIZEOF_VOID_P "")
75-
write_basic_package_version_file(${versionFile} COMPATIBILITY SameMajorVersion)
76-
set(CMAKE_SIZEOF_VOID_P ${OLD_CMAKE_SIZEOF_VOID_P})
77-
endif()
70+
write_basic_package_version_file(${versionFile} COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT)
7871

7972
install(FILES ${configFile} ${versionFile} DESTINATION ${configInstallDestination})
8073

0 commit comments

Comments
 (0)