CMake: don't run PoC tests with USE_POC=off

This commit is contained in:
nick black 2020-08-29 19:16:55 -04:00
parent 4d7941f1b9
commit af46b2aab6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -554,7 +554,7 @@ if(${BUILD_TESTING})
set(CMAKE_CTEST_ARGUMENTS "-V") set(CMAKE_CTEST_ARGUMENTS "-V")
enable_testing() enable_testing()
# the accursed Ubuntu buildd sets "TERM=unknown" for unfathomable reasons # the accursed Ubuntu buildd sets "TERM=unknown" for unfathomable reasons
if(DEFINED ENV{TERM} AND NOT $ENV{TERM} STREQUAL "unknown") if(DEFINED ENV{TERM} AND NOT $ENV{TERM} STREQUAL "unknown" AND USE_POC)
add_test( add_test(
NAME ncpp_build NAME ncpp_build
COMMAND ncpp_build COMMAND ncpp_build