From: Matthias Maier Date: Sat, 5 Mar 2016 08:00:36 +0000 (-0600) Subject: CMake: Also export package configuration to dealIIConfig.cmake X-Git-Tag: v8.5.0-rc1~1248^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afb770f984bfc1618f25a96dfdcba170796c7c26;p=dealii.git CMake: Also export package configuration to dealIIConfig.cmake This is a quick workaround to also allow to export package configuration variables of the form DEAL_II__WITH_<...> to be exported to deal.IIConfig.cmake --- diff --git a/cmake/config/CMakeLists.txt b/cmake/config/CMakeLists.txt index 61cbfd4f05..e27a9db4d0 100644 --- a/cmake/config/CMakeLists.txt +++ b/cmake/config/CMakeLists.txt @@ -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})