26ad89c2f1741c8e1f3e3980c9e27774afdb288c
[15.05/openwrt.git] / tools / cmake / patches / 100-disable_qt_tests.patch
1 --- a/Tests/RunCMake/CMakeLists.txt
2 +++ b/Tests/RunCMake/CMakeLists.txt
3 @@ -76,12 +76,6 @@ add_RunCMake_test(include_directories)
4  add_RunCMake_test(list)
5  add_RunCMake_test(CMP0004)
6  
7 -find_package(Qt4 QUIET)
8 -find_package(Qt5Core QUIET)
9 -if (QT4_FOUND AND Qt5Core_FOUND AND NOT Qt5Core_VERSION VERSION_LESS 5.1.0)
10 -  add_RunCMake_test(IncompatibleQt)
11 -endif()
12 -
13  if("${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio [^6]")
14    add_RunCMake_test(include_external_msproject)
15    add_RunCMake_test(SolutionGlobalSections)
16 --- a/Tests/CMakeLists.txt
17 +++ b/Tests/CMakeLists.txt
18 @@ -259,10 +259,6 @@ if(BUILD_TESTING)
19  
20    list(APPEND TEST_BUILD_DIRS ${CMake_TEST_INSTALL_PREFIX})
21  
22 -  if(NOT QT4_FOUND)
23 -    find_package(Qt4)
24 -  endif()
25 -
26    if(QT4_FOUND)
27      # test whether the Qt4 which has been found works, on some machines
28      # which run nightly builds there were errors like "wrong file format"