HomeFreeBSD

misc/mxnet: don't build the tests if testing is not enabled

Description

misc/mxnet: don't build the tests if testing is not enabled

Local (testport) builds were failing like so:

ld: error: undefined symbol: testing::Message::GetString() const

referenced by base.cc

tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o:(testing::AssertionResult::AppendMessage(testing::Message const&))

because the testing libraries were not being linked -- because
they're not even searched for when testing is not enabled.
Extend previous patch that put the searching-for-testlibs
behind a check, to apply the same check to building-tests.

Details

Provenance
adridgAuthored on Apr 15 2021, 11:15 PM
Parents
R11:e44d8d345dc3: security/openconnect-gui: fix build ahead of CMake 3.20
Branches
Unknown
Tags
Unknown