[cmake-user] Bump cmake_minimum_required (#39072)

Fixes:
~~~
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.
~~~
This commit is contained in:
Kai Pastor 2024-06-04 07:29:41 +02:00 committed by GitHub
parent f62d0f19c1
commit b69ec652ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 15 additions and 4 deletions

View File

@ -4,7 +4,12 @@
_find_package(BLAS) # Find BLAS before setting BLA_VENDOR (Will set/unset BLA_VENDOR itself)
set(BLA_VENDOR @BLA_VENDOR@)
set(BLA_STATIC @BLA_STATIC@)
if(APPLE AND "@BLA_STATIC@" AND CMAKE_VERSION VERSION_LESS "3.17.0")
# avoid `-Wl,--(start|end)-group` and wrong lib suffix
set(BLA_STATIC 0)
else()
set(BLA_STATIC @BLA_STATIC@)
endif()
_find_package(${ARGS})
unset(BLA_VENDOR)
unset(BLA_STATIC)

View File

@ -2,7 +2,7 @@
"$comment": "Keep the platform expressions in sync with the wrappers installed by the portfiles!",
"name": "lapack",
"version-date": "2023-06-10",
"port-version": 1,
"port-version": 2,
"description": "Metapackage for packages which provide LAPACK",
"license": null,
"supports": "!android",

View File

@ -184,6 +184,7 @@ function(test_cmake_project)
${base_options}
${arg_OPTIONS}
"-DFIND_PACKAGES=${package}"
--trace-expand
OUTPUT_FILE "${log_out}"
ERROR_FILE "${log_err}"
RESULT_VARIABLE package_result

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.4)
cmake_minimum_required(VERSION 3.5)
project(cmake-user LANGUAGES C)
message(STATUS "CMAKE_COMMAND: ${CMAKE_COMMAND}")

View File

@ -4086,7 +4086,7 @@
},
"lapack": {
"baseline": "2023-06-10",
"port-version": 1
"port-version": 2
},
"lapack-reference": {
"baseline": "3.11.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "629522c4a52d924f0eeda0974bcf74c7d8f024fb",
"version-date": "2023-06-10",
"port-version": 2
},
{
"git-tree": "6a41c325a45d83ce6d5ee28d55a15d792ac228fa",
"version-date": "2023-06-10",