Draft: In add_test link against ${ProjectName}_LIBRARIES automatically
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: WithOLDbehavior, the${ProjectName}_LIBRARIESare not linked automatically, but instead just theDune::Commonlibrary. WithNEWthe introduced behavior is activated. TheNEWbehavior will be the default starting from dune-common version 2.11
Requirements
-
Needs !1269 (merged)
Edited by Simon Praetorius