1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index f1ecfe0..9056f9d 100644
5 @@ -83,8 +83,9 @@ ExternalProject_Add(BearSource
6 -DCMAKE_MODULE_LINKER_FLAGS:STRING=${CMAKE_MODULE_LINKER_FLAGS}
7 -DROOT_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
8 ${CMAKE_CACHE_ARGS_EXTRA}
10 + TEST_EXCLUDE_FROM_MAIN
14 ctest # or `ctest -T memcheck`
16 @@ -100,7 +101,8 @@ if (ENABLE_FUNC_TESTS)
17 -DCMAKE_INSTALL_LIBDIR:PATH=${CMAKE_INSTALL_LIBDIR}
18 -DCMAKE_INSTALL_BINDIR:PATH=${CMAKE_INSTALL_BINDIR}
19 -DSTAGED_INSTALL_PREFIX:PATH=${STAGED_INSTALL_PREFIX}
21 + TEST_EXCLUDE_FROM_MAIN