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
: WithOLD
behavior, the${ProjectName}_LIBRARIES
are not linked automatically, but instead just theDune::Common
library. WithNEW
the introduced behavior is activated. TheNEW
behavior will be the default starting from dune-common version 2.11
Requirements
-
Needs !1269 (merged)
Edited by Simon Praetorius