Skip to content

Commit

Permalink
CMake: set soversion when building shared library (#681)
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
  • Loading branch information
topazus and hcho3 committed Aug 8, 2023
1 parent d1027ae commit 4d79489
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ if(USE_AZURE)
endif()

add_library(dmlc ${SOURCE})
set_target_properties(dmlc PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR})
target_compile_features(dmlc PUBLIC cxx_std_${CMAKE_CXX_STANDARD})

# Sanitizer
Expand Down

0 comments on commit 4d79489

Please sign in to comment.