Skip to content

Draft: In add_test link against ${ProjectName}_LIBRARIES automatically

Simon Praetorius requested to merge feature/add-test-link-project-libraries into master

Summary

The macro add_test links automatically to dunecommon, but if used in downstream modules one has to add their own module library manually. This MR changes the default to the global property ${ProjectName}_LIBRARIES as suggested in !944 (comment 127787)

The behavior can be controlled by setting the following dune policy to OLD or NEW:

  • policy DP0001: With OLD behavior, the ${ProjectName}_LIBRARIES are not linked automatically, but instead just the Dune::Common library. With NEW the introduced behavior is activated. The NEW behavior will be the default starting from dune-common version 2.11

Requirements

Edited by Simon Praetorius

Merge request reports

Loading