tools/cmake: update to 3.17.0
[openwrt/openwrt.git] / tools / cmake / patches / 100-no-testing.patch
1 --- a/Modules/CTest.cmake
2 +++ b/Modules/CTest.cmake
3 @@ -47,7 +47,7 @@ the :variable:`CTEST_USE_LAUNCHERS` variable::
4 in the ``CTestConfig.cmake`` file.
5 #]=======================================================================]
6
7 -option(BUILD_TESTING "Build the testing tree." ON)
8 +option(BUILD_TESTING "Build the testing tree." OFF)
9
10 # function to turn generator name into a version string
11 # like vs9 or vs10
12 --- a/Modules/Dart.cmake
13 +++ b/Modules/Dart.cmake
14 @@ -33,7 +33,7 @@ whether testing support should be enabled. The default is ON.
15 #
16 #
17
18 -option(BUILD_TESTING "Build the testing tree." ON)
19 +option(BUILD_TESTING "Build the testing tree." OFF)
20
21 if(BUILD_TESTING)
22 find_package(Dart QUIET)
23 --- a/Tests/Contracts/VTK/Dashboard.cmake.in
24 +++ b/Tests/Contracts/VTK/Dashboard.cmake.in
25 @@ -25,7 +25,7 @@ ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
26
27 file(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "
28 BUILD_EXAMPLES:BOOL=ON
29 - BUILD_TESTING:BOOL=ON
30 + BUILD_TESTING:BOOL=OFF
31 VTK_WRAP_PYTHON:BOOL=ON
32 ExternalData_OBJECT_STORES:FILEPATH=@base_dir@/ExternalData
33 ")