]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Remove deal.IIFeatureConfig.cmake
authorMatthias Maier <tamiko@43-1.org>
Wed, 30 Nov 2022 15:08:16 +0000 (09:08 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 30 Nov 2022 17:30:28 +0000 (11:30 -0600)
cmake/config/CMakeLists.txt
cmake/config/Config.cmake.in
cmake/setup_write_config.cmake

index c7be0c2ee19a261b9f26dfac26074e84a180523f..117f88cf23b890c768761f53b6299c9c4f02d6b1 100644 (file)
@@ -175,7 +175,6 @@ configure_file(
 install(FILES
   ${CMAKE_CURRENT_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_NAME}Config.cmake
   ${CMAKE_CURRENT_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_NAME}ConfigVersion.cmake
-  ${CMAKE_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}FeatureConfig.cmake
   DESTINATION ${DEAL_II_PROJECT_CONFIG_RELDIR}
   COMPONENT library
   )
index 73d96b9686a1dcbe6ea413e060dea9e449d5d605..1dca5d105c3c1516335a8381c16de6d88ef5a31a 100644 (file)
@@ -191,6 +191,3 @@ set(DEAL_II_TARGET_RELEASE "@CONFIG_TARGET_RELEASE@")
 
 # Full list of targets with "debug" and "optimized" keywords for easy use with TARGET_LINK_LIBRARIES:
 set(DEAL_II_TARGET "@CONFIG_TARGET@")
-
-# The feature configuration file:
-set(DEAL_II_FEATURE_CONFIG "${DEAL_II_PATH}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}FeatureConfig.cmake")
index c0d34fdffd7af3b08d040c84349da0257a50494e..4a639402b2292c86a293693ae3a70272a4cbf3c5 100644 (file)
@@ -42,9 +42,7 @@ file(WRITE ${CMAKE_BINARY_DIR}/revision.log
 
 set(_log_detailed "${CMAKE_BINARY_DIR}/detailed.log")
 set(_log_summary  "${CMAKE_BINARY_DIR}/summary.log")
-set(_log_feature "${CMAKE_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}FeatureConfig.cmake")
-file(REMOVE ${_log_detailed} ${_log_summary} ${_log_feature})
-file(WRITE ${_log_feature} "")
+file(REMOVE ${_log_detailed} ${_log_summary})
 
 macro(_both)
   # Write to both log files:
@@ -62,11 +60,6 @@ macro(_summary)
   file(APPEND ${_log_summary} "${ARGN}")
 endmacro()
 
-macro(_featurelog)
-  # Only write to deal.IIFeatureConfig.cmake:
-  file(APPEND ${_log_feature} "${ARGN}")
-endmacro()
-
 _both(
 "###
 #
@@ -227,12 +220,10 @@ foreach(_feature ${_deal_ii_features_sorted})
     #
     if(NOT "${${_feature}_DIR}" STREQUAL "")
       _detailed("#            ${_feature}_DIR = ${${_feature}_DIR}\n")
-      _featurelog("set(DEAL_II_${_feature}_DIR \"${${_feature}_DIR}\")\n")
     endif()
 
     if(NOT "${${_feature}_SPLIT_CONFIGURATION}" STREQUAL "")
       _detailed("#            ${_feature}_SPLIT_CONFIGURATION = ${${_feature}_SPLIT_CONFIGURATION}\n")
-      _featurelog("set(DEAL_II_${_feature}_SPLIT_CONFIGURATION \"${${_feature}_SPLIT_CONFIGURATION}\")\n")
     endif()
 
     #
@@ -244,7 +235,6 @@ foreach(_feature ${_deal_ii_features_sorted})
       )
       if(DEFINED ${_feature}_${_var2})
         _detailed("#            ${_feature}_${_var2} = ${${_feature}_${_var2}}\n")
-        _featurelog("set(DEAL_II_${_feature}_${_var2} \"${${_feature}_${_var2}}\")\n")
       endif()
     endforeach()
   else()

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.