Rewrite FindGMP to provide imported targets
Summary
This MR adds imported-targets to the FindGMP.cmake
module, following modern cmake guidelines.
Details
Instead of exporting include directories and libraries as variables, the find modules exports an imported target that contains all the necessary information to include and link GMP. Two such imported targets are provided: GMP::gmp
and GMP::gmpxx
for the C and C++ library, respectively.
Acknowledgements
This find-module is developed together with @lukas.riedel
Merge request reports
Activity
changed milestone to %New CMake Build-System
added buildsystem label
added 1 commit
- fb2b3dad - Update AddGMPFlags to link to imported target
added 1 commit
- 88545960 - link against GMP::gmpxx and set ENABLE_GMP=1 in add_dune_gmp_flags
added 1 commit
- 9ec4e981 - Move HAVE_GMP and dune_register_package_flags to AddGMPFlags
added 1 commit
- 4cbbe8a8 - Update AddGMPFlags to link to imported target
enabled an automatic merge when the pipeline for b88054d7 succeeds
mentioned in commit 2917908b
mentioned in issue #199 (closed)
Please register or sign in to reply