]> https://gitweb.dealii.org/ - dealii.git/commit
CMake: Add a CLEAR_FEATURE macro and use it in PACKAGE_HANDLE
authorMatthias Maier <tamiko@43-1.org>
Wed, 23 Dec 2020 02:26:23 +0000 (20:26 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 23 Dec 2020 02:28:10 +0000 (20:28 -0600)
commitc3bd9a4202492452b5cae0753221f08a16db0ffd
tree4f3fad9cdc217aec2616c6f9b9ed91e2c9a12857
parent65105f78fc90943d0f2f41c3ff8a06674ac41963
CMake: Add a CLEAR_FEATURE macro and use it in PACKAGE_HANDLE

Let's play it save and reset all "feature" variables (such as
<FEATURE>_INCLUDE_DIRS, <FEATURE>_LIBRARIES, etc.) before we populate
them in DEAL_II_PACKAGE_HANDLE(...).

This guards against issues where we include an external project
configuration that actually sets variables, such as <FEATURE>_CXX_FLAGS,
that we then accidentally use in our configuration even though this was
never intended.
cmake/macros/macro_clear_feature.cmake [new file with mode: 0644]
cmake/macros/macro_deal_ii_package_handle.cmake

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.