Merge pull request #4848 from haampie/fix/cmake-min-version

cmake: set `CMP0042` to `NEW`
This commit is contained in:
Martin Kroeker 2024-10-25 20:59:13 +02:00 committed by GitHub
commit a8bb105ed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -2,7 +2,7 @@
## Author: Hank Anderson <hank@statease.com>
##
cmake_minimum_required(VERSION 2.8.5)
cmake_minimum_required(VERSION 3.16.0)
project(OpenBLAS C ASM)
@ -258,10 +258,6 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "AIX|Android|Linux|FreeBSD|OpenBSD|NetBSD|Drago
endif()
endif()
if (APPLE AND BUILD_SHARED_LIBS)
set(CMAKE_MACOSX_RPATH ON)
endif()
# Seems that this hack doesn't required since macOS 11 Big Sur
if (APPLE AND BUILD_SHARED_LIBS AND CMAKE_HOST_SYSTEM_VERSION VERSION_LESS 20)
set (CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)