From: maier Date: Wed, 12 Sep 2012 18:46:01 +0000 (+0000) Subject: Add sonaming and versioning X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef3c45dfb2bf76d764564fbb22d7abaa521c45b;p=dealii-svn.git Add sonaming and versioning git-svn-id: https://svn.dealii.org/branches/branch_cmake@26323 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/CMakeLists.txt b/deal.II/CMakeLists.txt index 6ce276ec48..c5c468f777 100644 --- a/deal.II/CMakeLists.txt +++ b/deal.II/CMakeLists.txt @@ -56,7 +56,7 @@ OPTION(DEAL_II_WITH_METIS OPTION(DEAL_II_WITH_MPI "Build deal.II with support for mpi." - ON) + OFF) OPTION(DEAL_II_WITH_NETCDF "Build deal.II with support for netcdf." @@ -102,14 +102,6 @@ OPTION(DEAL_II_FORCE_CONTRIB_UMFPACK "Always use the bundled umfpack library instead of an external one." OFF) -# -# Configuration options regarding linkage: -# - -#OPTION(DEAL_II_SET_SONAME -# "Set the soname." -# ON) - # # Compatibility support: # diff --git a/deal.II/source/CMakeLists.txt b/deal.II/source/CMakeLists.txt index 2024a9dc7e..ea4d6a1701 100644 --- a/deal.II/source/CMakeLists.txt +++ b/deal.II/source/CMakeLists.txt @@ -35,9 +35,14 @@ ADD_LIBRARY(deal_II SHARED ) # -# Link all external libraries into the target: -# TODO: toggle for as-needed -# +# Sonaming: Well... we just use the version number. No point to wrack +# one's brain over the question whether a C++ library is still ABI +# backwards compatible. +# +SET_TARGET_PROPERTIES(deal_II PROPERTIES + VERSION ${VERSION} + SOVERSION ${VERSION} + ) IF (CMAKE_BUILD_TYPE MATCHES "debug") TARGET_LINK_LIBRARIES(deal_II ${deal_ii_required_linker_flags} ${deal_ii_external_debug_libraries})