]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a symlink in component compat_files if LIB_SUFFIX is not empty
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 16:57:10 +0000 (16:57 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 16:57:10 +0000 (16:57 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26517 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/CMakeLists.txt

index 0000f2d04fd2a123f740b9b8d0d53385a4fb322f..ba0075877df6630385675a75e1e930186c801cea 100644 (file)
@@ -64,3 +64,22 @@ INSTALL(TARGETS deal_II
   DESTINATION lib${LIB_SUFFIX}
   COMPONENT library
   )
+
+
+IF(DEAL_II_INSTALL_COMPAT_FILES)
+  #
+  # If ${LIB_SUFFIX} is not empty, create a symlink from lib to
+  # lib${LIB_SUFFIX} to ensure compatibility with the old build system:
+  #
+  IF(NOT "${LIB_SUFFIX}" STREQUAL "")
+    INSTALL(
+      CODE
+        "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
+          ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
+          ${CMAKE_INSTALL_PREFIX}/lib
+          )"
+      COMPONENT compat_files
+      )
+  ENDIF()
+ENDIF()
+

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.