]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: make sure that bundled include directory gets created 16617/head
authorMatthias Maier <tamiko@43-1.org>
Fri, 9 Feb 2024 17:38:03 +0000 (11:38 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 9 Feb 2024 17:38:03 +0000 (11:38 -0600)
bundled/CMakeLists.txt

index 43194180f722ada08bfba6e6dfba0301548dfd36..bacbe1d2486c88dc06b7191e3daffcd09364d53b 100644 (file)
 
 message(STATUS "Setting up bundled features")
 
+#
+# If we install any bundled software also install the README.md file into
+# the bundled header directory. First of all, this ensures that we always
+# have a disclaimer in place explaining where the header files come from.
+# Secondly, in rare circumstances we might end up not installing any header
+# (because they are only used internally). Because this is quite tricky to
+# figure out when setting up targets we work around this issue by simply
+# always installing something into the bundled header directory.
+#
+if(NOT "${DEAL_II_BUNDLED_INCLUDE_DIRS}" STREQUAL "")
+  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/README.md
+    DESTINATION ${DEAL_II_INCLUDE_RELDIR}/deal.II/bundled
+    COMPONENT library
+    )
+endif()
+
 if(DEAL_II_FEATURE_BOOST_BUNDLED_CONFIGURED)
   add_subdirectory(${BOOST_FOLDER}/libs/serialization/src)
   add_subdirectory(${BOOST_FOLDER}/libs/system/src)

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.