mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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
This commit is contained in:
parent
d8808f56e9
commit
d675a05d95
1 changed files with 3 additions and 10 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright 2019 Alexander Grund
|
||||
# Copyright 2019-2025 Alexander Grund
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
cmake_minimum_required(VERSION 3.16..3.20)
|
||||
project(turtle VERSION 2.0.0 LANGUAGES CXX)
|
||||
|
||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
|
|
@ -67,14 +67,7 @@ if(TURTLE_INSTALL)
|
|||
INSTALL_DESTINATION ${configInstallDestination}
|
||||
)
|
||||
|
||||
if(NOT CMAKE_VERSION VERSION_LESS 3.14)
|
||||
write_basic_package_version_file(${versionFile} COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT)
|
||||
else()
|
||||
set(OLD_CMAKE_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P})
|
||||
set(CMAKE_SIZEOF_VOID_P "")
|
||||
write_basic_package_version_file(${versionFile} COMPATIBILITY SameMajorVersion)
|
||||
set(CMAKE_SIZEOF_VOID_P ${OLD_CMAKE_SIZEOF_VOID_P})
|
||||
endif()
|
||||
|
||||
install(FILES ${configFile} ${versionFile} DESTINATION ${configInstallDestination})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue