Skip to content

Commit

Permalink
CMake: Fix for older versions of cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm314 committed Mar 30, 2024
1 parent e320c20 commit 50fb897
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50fb897

Please sign in to comment.