cmake add ECL_TESTS option only enabled in standalone build

This commit is contained in:
Daniel Agar
2019-03-12 23:29:30 -04:00
parent fabd216ca5
commit a892ececf8
3 changed files with 4 additions and 4 deletions
+1
View File
@@ -104,6 +104,7 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
enable_testing()
if(BUILD_TESTING)
option(ECL_TESTS "Build ECL tests" ON)
add_custom_target(check
COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C Debug