void-packages/srcpkgs/widelands/files/disable-testing.patch

23 lines
641 B
Diff

--- CMakeLists.txt 2016-11-10 08:28:01.000000000 +0100
+++ CMakeLists.txt 2017-12-19 15:31:31.468125411 +0100
@@ -229,18 +229,7 @@
)
endif (NOT DEFINED WL_VERSION)
-# Enable testing.
-include(CTest)
-enable_testing()
-
-# Run a test after a normal compile. This magic is needed as 'make test' will
-# not rebuild tests:
-# http://stackoverflow.com/questions/733475/cmake-ctest-make-test-doesnt-build-tests
-add_custom_target(_run_all_tests ALL
- COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
- DEPENDS wl_tests
-)
+# No testing.
install (
FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION