TriBITSPub / TriBITS

TriBITS: Tribal Build, Integrate, and Test System,
http://tribits.org
Other
36 stars 46 forks source link

INVALID: TriBITS not enabling downstream package with test-only dependency on upstream package with <Project>_ENABLE_ALL_FORWARD_DEP_PACKAGES=ON #511

Closed bartlettroscoe closed 2 years ago

bartlettroscoe commented 2 years ago

While working on #510, I discovered that TriBITS is not enabling downstream packages that only have test dependencies on an upstream package. For example, if you configure TribitsExampleProject with:

-DTribitsExProj_ENABLE_MixedLang=ON \
-DTribitsExProj_ENABLE_TESTS=ON \
-DTribitsExProj_ENABLE_ALL_FORWARD_DEP_PACKAGES=ON  \

you don't get the subpackage WithSubpackagesB enabled and have its test built even though that package has an optional test dependency on MixedLang.

bartlettroscoe commented 2 years ago

Turns out TriBITS was doing the right thing. I just had not enabled ST packages when setting up my test.

Closing as INVALID.