-
- Downloads
Merge branch 'feature/FS1557-add-all-flags-by-default-infrastructure'
This branch adds the required infrastructure to automatically enable all external packages and Dune-internal libraries for all targets inside a given Dune modules. For this purpose, it adds a number of new CMake macros: - dune_enable_all_packages is the central macro that needs to be called in the main CMakeLists.txt of your project. - dune_library_add_sources is an optional macro that you only need if your project also contains a library and you want your executables to automatically link against that library. Note that this support requires CMake 3.1. Most user modules don't create their own libraries and can thus ignore this macro. - dune_register_package_flags has to be called in all configuration tests to register the outcome of the test so that dune_enable_all_packages can automatically add the required compiler and linker flags required to use the library that the configuration test has been written for. The branch also adds the required calls to dune_register_package_flags to all configuration tests in dune_common. There is a similar branch in dune-grid that updates the configuration tests in that module. * feature/FS1557-add-all-flags-by-default-infrastructure: [CMake] dune_library_add_sources: Add some sanity checks [CMake] dune_enable_all_packages: Add sensible scoping to macro variables [CMake] Avoid duplicate version warnings in dune_library_add_sources [CMake] dune_enable_all_packages(): Add version check to library support [CMake] Clean up dune_enable_all_packages() and fix library handling [CMake][ParMETIS] Fix some typos in dune_register_package_flags() call [CMake] Export project revision as ProjectVersionRevision Fix c&p error in verbosity code Introduce an APPEND parameter on the dune_register_package_flags macro Issue a warning when the registry macros parameters cannot be parsed Introduce an optional VERBOSE argument on the dune_enable_all_packages macro Introduce a macro dune_register_package flags to be used by find modules [CMake] Move the enable_all_packages feature to a separate module Update the duneproject script to ask the user whether to use all flags Introduce a macro that adds all flags to all targets Update all find scripts split definitions from includes Split ALL_PKG_FLAGS into ALL_PKG_DEFS and ALL_PKG_INCS
No related branches found
No related tags found
Showing
- bin/duneproject 11 additions, 1 deletionbin/duneproject
- cmake/modules/DuneBoost.cmake 5 additions, 6 deletionscmake/modules/DuneBoost.cmake
- cmake/modules/DuneCommonMacros.cmake 1 addition, 1 deletioncmake/modules/DuneCommonMacros.cmake
- cmake/modules/DuneEnableAllPackages.cmake 222 additions, 0 deletionscmake/modules/DuneEnableAllPackages.cmake
- cmake/modules/DuneMPI.cmake 4 additions, 4 deletionscmake/modules/DuneMPI.cmake
- cmake/modules/DuneMacros.cmake 8 additions, 13 deletionscmake/modules/DuneMacros.cmake
- cmake/modules/FindGMP.cmake 4 additions, 6 deletionscmake/modules/FindGMP.cmake
- cmake/modules/FindMETIS.cmake 3 additions, 5 deletionscmake/modules/FindMETIS.cmake
- cmake/modules/FindParMETIS.cmake 4 additions, 5 deletionscmake/modules/FindParMETIS.cmake
- cmake/modules/FindUMFPack.cmake 4 additions, 6 deletionscmake/modules/FindUMFPack.cmake
- cmake/scripts/module_library.cc.in 11 additions, 0 deletionscmake/scripts/module_library.cc.in
Loading
Please register or sign in to comment