]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Also export package configuration to dealIIConfig.cmake 2306/head
authorMatthias Maier <tamiko@43-1.org>
Sat, 5 Mar 2016 08:00:36 +0000 (02:00 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sat, 5 Mar 2016 08:00:36 +0000 (02:00 -0600)
This is a quick workaround to also allow to export package configuration
variables of the form

  DEAL_II_<FEATURE>_WITH_<...>

to be exported to deal.IIConfig.cmake

cmake/config/CMakeLists.txt

index 61cbfd4f056995059d5a7ded2ec5818424370af3..e27a9db4d0033da0cf7784e78cf48119b44b88ae 100644 (file)
@@ -1,6 +1,6 @@
 ## ---------------------------------------------------------------------
 ##
-## Copyright (C) 2012 - 2015 by the deal.II authors
+## Copyright (C) 2012 - 2016 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -212,7 +212,13 @@ ENDFOREACH()
 
 GET_CMAKE_PROPERTY(res VARIABLES)
 FOREACH(var ${res})
-  IF(var MATCHES "DEAL_II_WITH")
+  #
+  # Workaround: We export all variables that match "DEAL_II_.*WITH" to also
+  # export package configuration variables of the form
+  #   DEAL_II_ARPACK_WITH_PARPACK
+  # etc.
+  #
+  IF(var MATCHES "DEAL_II_.*WITH")
     STRING(REPLACE "DEAL_II_WITH_" "" _name ${var})
 
     FOREACH(_file ${_files})

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.