Skip to content

Commit

Permalink
Add versioning in CMake for shared library (#316)
Browse files Browse the repository at this point in the history
Co-authored-by: Bartosz Szostak <bszostak@nvidia.com>
  • Loading branch information
xbrtszstk and Bartosz Szostak authored Dec 31, 2024
1 parent a1105e9 commit e289f3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ if (REFLECTCPP_USE_VCPKG)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
endif ()

project(reflectcpp LANGUAGES CXX)
project(reflectcpp VERSION 0.16.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 20)

if (REFLECTCPP_BUILD_SHARED)
add_library(reflectcpp SHARED)
set_target_properties(reflectcpp PROPERTIES SOVERSION ${PROJECT_VERSION})
else()
add_library(reflectcpp STATIC)
endif()
Expand Down

0 comments on commit e289f3e

Please sign in to comment.