prima icon indicating copy to clipboard operation
prima copied to clipboard

Either make tests and examples independent or enable examples when building tests

Open barracuda156 opened this issue 2 years ago • 1 comments

Tests do not run if examples are not explicitly enabled in the build. This is somewhat counter-intuitive: perhaps, either make these separate or make examples a part of tests without a separate configure setting. Otherwise running tests with -DPRIMA_ENABLE_TESTING=ON but without -DPRIMA_ENABLE_EXAMPLES=ON leaves all tests broken.

barracuda156 avatar Dec 10 '23 10:12 barracuda156

Tests do not run if examples are not explicitly enabled in the build. This is somewhat counter-intuitive: perhaps, either make these separate or make examples a part of tests without a separate configure setting. Otherwise running tests with -DPRIMA_ENABLE_TESTING=ON but without -DPRIMA_ENABLE_EXAMPLES=ON leaves all tests broken.

@jschueller Could you have a look! Shouldn't DPRIMA_ENABLE_EXAMPLES be set to ON if DPRIMA_ENABLE_TESTING is ON? Or should we merge the two options? Thank you.

zaikunzhang avatar Dec 10 '23 16:12 zaikunzhang