]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add sonaming and versioning
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 12 Sep 2012 18:46:01 +0000 (18:46 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 12 Sep 2012 18:46:01 +0000 (18:46 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26323 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/CMakeLists.txt
deal.II/source/CMakeLists.txt

index 6ce276ec485e8323d3f0301c258206e17301a2bf..c5c468f777bfa3884c4a2672a85b9cfad7702cf2 100644 (file)
@@ -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:
 #
index 2024a9dc7e49b714114a3ddc71e1589178d5a10e..ea4d6a170190cba14f55eed6e35248d2665f69c6 100644 (file)
@@ -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})

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.