Skip to content
Snippets Groups Projects
Commit d841ae8a authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon Committed by GitHub
Browse files

Merge pull request #179 from chuckatkins/add-lib-version-info

Setup library versioning.
parents 230ef75b 502b61b5
No related branches found
No related tags found
No related merge requests found
...@@ -133,6 +133,12 @@ if(ADIOS2_HAVE_HDF5) ...@@ -133,6 +133,12 @@ if(ADIOS2_HAVE_HDF5)
target_link_libraries(adios2 PRIVATE ${HDF5_C_LIBRARIES}) target_link_libraries(adios2 PRIVATE ${HDF5_C_LIBRARIES})
endif() endif()
# Set library version information
set_target_properties(adios2 PROPERTIES
VERSION ${ADIOS2_VERSION}
SOVERSION ${ADIOS2_VERSION_MAJOR}
)
install( install(
FILES ADIOSMacros.h ADIOSTypes.h ADIOSMPICommOnly.h FILES ADIOSMacros.h ADIOSTypes.h ADIOSMPICommOnly.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/adios2 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/adios2
......
...@@ -54,7 +54,6 @@ if(ADIOS2_HAVE_ZeroMQ) ...@@ -54,7 +54,6 @@ if(ADIOS2_HAVE_ZeroMQ)
list(APPEND dataman_targets mdtmman) list(APPEND dataman_targets mdtmman)
endif() endif()
if(ADIOS2_HAVE_ZFP) if(ADIOS2_HAVE_ZFP)
find_package(ZFP REQUIRED) find_package(ZFP REQUIRED)
...@@ -64,6 +63,13 @@ if(ADIOS2_HAVE_ZFP) ...@@ -64,6 +63,13 @@ if(ADIOS2_HAVE_ZFP)
list(APPEND dataman_targets zfpman) list(APPEND dataman_targets zfpman)
endif() endif()
# Library versioning like this only makes sense for libdataman. The others are plugins
# loaded via dlopen.
set_target_properties(dataman PROPERTIES
VERSION ${ADIOS2_VERSION}
SOVERSION ${ADIOS2_VERSION_MAJOR}
)
install( install(
TARGETS ${dataman_targets} EXPORT adios2 TARGETS ${dataman_targets} EXPORT adios2
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment