Set CMake 3.0 policies to NEW

This commit is contained in:
Harmen Stoppels 2024-08-07 16:40:11 +02:00
parent 1ef9f24b39
commit f49371c1ba
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 2.8.5...3.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)