diff --git a/CMakeLists.txt b/CMakeLists.txt index a5c6f2de80ec7786e37c2664f6a02ec613fab61e..9b312790e0dad915d1ccbf859d44efa5a1a9c555 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,11 +23,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -cmake_minimum_required(VERSION 3.12) +set(CMAKE_MAXIMUM_SUPPORTED_VERSION 3.31) -set(CMAKE_MAXIMUM_SUPPORTED_VERSION 3.30) - -include("./cmake/HandlePolicies.cmake" NO_POLICY_SCOPE) +cmake_minimum_required(VERSION 3.12...${CMAKE_MAXIMUM_SUPPORTED_VERSION}) project(AccelerateLAPACKE VERSION 1.1.0 LANGUAGES C) diff --git a/cmake/HandlePolicies.cmake b/cmake/HandlePolicies.cmake deleted file mode 100644 index 64b72baa7c04f72a13d608fd549482e20323a77e..0000000000000000000000000000000000000000 --- a/cmake/HandlePolicies.cmake +++ /dev/null @@ -1,38 +0,0 @@ -#[[ -MIT License - -CMake build script for the Accelerate LAPACKE project -Copyright (c) 2025 Tim Kaune - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -]] - -if (NOT DEFINED CMAKE_MAXIMUM_SUPPORTED_VERSION) - set(CMAKE_MAXIMUM_SUPPORTED_VERSION ${CMAKE_MINIMUM_REQUIRED_VERSION}) -endif () - -# If CMAKE_VERSION <= CMAKE_MAXIMUM_SUPPORTED_VERSION is used, set policies up -# to CMAKE_VERSION to NEW -if (${CMAKE_VERSION} VERSION_LESS_EQUAL ${CMAKE_MAXIMUM_SUPPORTED_VERSION}) - cmake_policy(VERSION ${CMAKE_VERSION}) -# If CMAKE_VERSION > CMAKE_MAXIMUM_SUPPORTED_VERSION is used, set policies up to -# CMAKE_MAXIMUM_SUPPORTED_VERSION to NEW -else () - cmake_policy(VERSION ${CMAKE_MAXIMUM_SUPPORTED_VERSION}) -endif()