CMakeLists.txt: initialize SO_VERSION to 0

parent 090bf5b2
......@@ -21,7 +21,10 @@
############################################################################
cmake_minimum_required(VERSION 3.0)
project(bctoolbox VERSION 0.0.2 LANGUAGES C CXX)
set(BCTOOLBOX_SO_VERSION 0)
set(BCTOOLBOXTESTER_SO_VERSION 0)
option(ENABLE_SHARED "Build shared library." YES)
option(ENABLE_STATIC "Build static library." YES)
......
......@@ -45,7 +45,7 @@ if(ENABLE_STATIC)
endif()
if(ENABLE_SHARED)
add_library(bctoolbox SHARED ${BCTOOLBOX_SOURCE_FILES})
set_target_properties(bctoolbox PROPERTIES VERSION 0.0.0 SOVERSION 0)
set_target_properties(bctoolbox PROPERTIES VERSION ${BCTOOLBOX_SO_VERSION})
set_target_properties(bctoolbox PROPERTIES LINKER_LANGUAGE "CXX")
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
......@@ -57,7 +57,7 @@ if(ENABLE_SHARED)
endif()
if(CUNIT_FOUND)
add_library(bctoolbox-tester SHARED ${BCTOOLBOX_TESTER_SOURCE_FILES})
set_target_properties(bctoolbox-tester PROPERTIES VERSION 0.0.0 SOVERSION 0)
set_target_properties(bctoolbox-tester PROPERTIES VERSION ${BCTOOLBOXTESTER_SO_VERSION})
set_target_properties(bctoolbox-tester PROPERTIES LINKER_LANGUAGE "CXX")
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment