Skip to content

Commit

Permalink
cmake: add so version to library
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans committed Oct 17, 2024
1 parent f57b12f commit c69ec4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ if(SILO_VERS_PAT)
string(APPEND SILO_VERS_TAG "_${SILO_VERS_PAT}")
endif()

# Bump if API changes
set(SILO_SOVERSION 4)

configure_file(${Silo_SOURCE_DIR}/src/silo/silo.h.in
${silo_build_include_dir}/silo.h)

Expand Down Expand Up @@ -586,6 +589,7 @@ if(SILO_ENABLE_HDF5 AND HDF5_FOUND)
endif()

add_library(silo ${silo_library_sources})
set_target_properties(silo PROPERTIES SOVERSION ${SILO_SOVERSION})

if(UNIX)
target_link_libraries(silo m)
Expand Down

0 comments on commit c69ec4d

Please sign in to comment.