python3Packages.pywikibot: init at 9.5.0 (#333068)
[NixPkgs.git] / pkgs / by-name / be / bear / 0001-exclude-tests-from-all.patch
blob041ab7246eed7591a4c4ca4d1f78f5cf10cbed68
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index f1ecfe0..9056f9d 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
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}
9 - TEST_BEFORE_INSTALL
10 + TEST_EXCLUDE_FROM_MAIN
12 + STEP_TARGETS test
13 TEST_COMMAND
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}
20 - TEST_BEFORE_INSTALL
21 + TEST_EXCLUDE_FROM_MAIN
22 + STEP_TARGETS test
24 INSTALL_COMMAND