CMake: Fix for older versions of cmake (#536)

master
Brian Moore 2024-04-01 23:24:30 -07:00 committed by GitHub
parent e320c204b1
commit e0c06a9ac1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ set(clblast_VERSION "${clblast_VERSION_MAJOR}.${clblast_VERSION_MINOR}.${clblast
set(clblast_SOVERSION ${clblast_VERSION_MAJOR})
# Policies
cmake_policy(SET CMP0074 NEW) # to make -DCBLAS_ROOT= work with newer CMake versions as well
IF(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
cmake_policy(SET CMP0074 NEW) # to make -DCBLAS_ROOT= work with newer CMake versions as well
ENDIF(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
# Options and their default values
option(BUILD_SHARED_LIBS "Build a shared (ON) or static library (OFF)" ON)