diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-02-11 15:31:21 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-02-11 15:31:21 +0100 |
commit | c5a28cd70b693431a4bee7c4d8e2062bc2edcd18 (patch) | |
tree | 6276ac0b4e0eca7ed40fe025f643ea6be1b26cc4 /CMakeLists.txt | |
parent | 70d0fe89c623f4d40ee53d113ba591099915fb9f (diff) |
Added CLBlast version numbering to the compiled library
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 18046bd7..2e685d76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,8 @@ project("clblast" C CXX) set(clblast_VERSION_MAJOR 1) set(clblast_VERSION_MINOR 3) set(clblast_VERSION_PATCH 0) +set(clblast_VERSION "${clblast_VERSION_MAJOR}.${clblast_VERSION_MINOR}.${clblast_VERSION_PATCH}") +set(clblast_SOVERSION ${clblast_VERSION_MAJOR}) # Options and their default values option(BUILD_SHARED_LIBS "Build a shared (ON) or static library (OFF)" ON) @@ -300,6 +302,7 @@ if(BUILD_SHARED_LIBS) else(BUILD_SHARED_LIBS) add_library(clblast STATIC ${SOURCES} ${HEADERS}) endif() +set_target_properties(clblast PROPERTIES VERSION ${clblast_VERSION} SOVERSION ${clblast_SOVERSION}) target_link_libraries(clblast ${API_LIBRARIES}) |