summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake/0002-cmake-Prevent-the-detection-of-Qt5.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake/0002-cmake-Prevent-the-detection-of-Qt5.patch')
-rw-r--r--meta/recipes-devtools/cmake/cmake/0002-cmake-Prevent-the-detection-of-Qt5.patch122
1 files changed, 0 insertions, 122 deletions
diff --git a/meta/recipes-devtools/cmake/cmake/0002-cmake-Prevent-the-detection-of-Qt5.patch b/meta/recipes-devtools/cmake/cmake/0002-cmake-Prevent-the-detection-of-Qt5.patch
deleted file mode 100644
index 33db07ccf0..0000000000
--- a/meta/recipes-devtools/cmake/cmake/0002-cmake-Prevent-the-detection-of-Qt5.patch
+++ /dev/null
@@ -1,122 +0,0 @@
1From 98abade8cc119e076e4c5f1461c5188f6d49c1d8 Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Wed, 17 Jan 2018 10:02:14 -0200
4Subject: [PATCH] cmake: Prevent the detection of Qt5
5
6Organization: O.S. Systems Software LTDA.
7
8CMake doesn't have dependency on qt4/qt5, so these tests usually fail
9but still can cause undeterministic results or build failures (when
10OE_QMAKE_PATH_EXTERNAL_HOST_BINS is undefined or native qmake removed
11while running the test in cmake)
12
13Upstream-Status: Inappropriate [configuration]
14
15Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
16
17---
18 Source/QtDialog/CMakeLists.txt | 2 +-
19 Tests/CMakeLists.txt | 2 +-
20 Tests/Qt4And5Automoc/CMakeLists.txt | 4 ++--
21 Tests/QtAutogen/AutogenGuiTest.cmake | 3 +--
22 Tests/QtAutogen/MacOsFW/CMakeLists.txt | 2 +-
23 Tests/RunCMake/CMakeLists.txt | 2 +-
24 Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake | 2 +-
25 7 files changed, 8 insertions(+), 9 deletions(-)
26
27diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
28index 452a303..d0a9fb4 100644
29--- a/Source/QtDialog/CMakeLists.txt
30+++ b/Source/QtDialog/CMakeLists.txt
31@@ -3,7 +3,7 @@
32
33 project(QtDialog)
34 CMake_OPTIONAL_COMPONENT(cmake-gui)
35-find_package(Qt5Widgets REQUIRED)
36+#find_package(Qt5Widgets REQUIRED)
37
38 set(CMake_QT_EXTRA_LIBRARIES)
39
40diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
41index 1fb47cb..e022229 100644
42--- a/Tests/CMakeLists.txt
43+++ b/Tests/CMakeLists.txt
44@@ -251,7 +251,7 @@ if(BUILD_TESTING)
45 set(CMake_TEST_Qt5 1)
46 endif()
47 if(CMake_TEST_Qt5)
48- find_package(Qt5Widgets QUIET NO_MODULE)
49+ #find_package(Qt5Widgets QUIET NO_MODULE)
50 endif()
51
52 if(NOT CMake_TEST_EXTERNAL_CMAKE)
53diff --git a/Tests/Qt4And5Automoc/CMakeLists.txt b/Tests/Qt4And5Automoc/CMakeLists.txt
54index ad74961..a9dd74b 100644
55--- a/Tests/Qt4And5Automoc/CMakeLists.txt
56+++ b/Tests/Qt4And5Automoc/CMakeLists.txt
57@@ -3,11 +3,11 @@ cmake_minimum_required(VERSION 2.8.12)
58 project(Qt4And5Automoc)
59
60 if (QT_REVERSE_FIND_ORDER)
61- find_package(Qt5Core REQUIRED)
62+ #find_package(Qt5Core REQUIRED)
63 find_package(Qt4 REQUIRED)
64 else()
65 find_package(Qt4 REQUIRED)
66- find_package(Qt5Core REQUIRED)
67+ #find_package(Qt5Core REQUIRED)
68 endif()
69
70 set(CMAKE_AUTOMOC ON)
71diff --git a/Tests/QtAutogen/AutogenGuiTest.cmake b/Tests/QtAutogen/AutogenGuiTest.cmake
72index b76d341..a6e0acb 100644
73--- a/Tests/QtAutogen/AutogenGuiTest.cmake
74+++ b/Tests/QtAutogen/AutogenGuiTest.cmake
75@@ -22,8 +22,7 @@ if (QT_TEST_VERSION EQUAL 4)
76 endmacro()
77
78 elseif(QT_TEST_VERSION EQUAL 5)
79-
80- find_package(Qt5Widgets REQUIRED)
81+ #find_package(Qt5Widgets REQUIRED)
82
83 set(QT_QTCORE_TARGET Qt5::Core)
84 set(QT_LIBRARIES Qt5::Widgets)
85diff --git a/Tests/QtAutogen/MacOsFW/CMakeLists.txt b/Tests/QtAutogen/MacOsFW/CMakeLists.txt
86index c08efc4..87e25d9 100644
87--- a/Tests/QtAutogen/MacOsFW/CMakeLists.txt
88+++ b/Tests/QtAutogen/MacOsFW/CMakeLists.txt
89@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10)
90 project(MacOsFW)
91 include("../AutogenGuiTest.cmake")
92
93-find_package(Qt5Test REQUIRED)
94+#find_package(Qt5Test REQUIRED)
95
96 set(CMAKE_CXX_STANDARD 11)
97 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin)
98diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
99index 370dd76..6bacbff 100644
100--- a/Tests/RunCMake/CMakeLists.txt
101+++ b/Tests/RunCMake/CMakeLists.txt
102@@ -473,7 +473,7 @@ if(NOT WIN32)
103 endif ()
104
105 find_package(Qt4 QUIET)
106-find_package(Qt5Core QUIET)
107+#find_package(Qt5Core QUIET)
108 if (QT4_FOUND AND Qt5Core_FOUND AND NOT Qt5Core_VERSION VERSION_LESS 5.1.0)
109 add_RunCMake_test(IncompatibleQt)
110 endif()
111diff --git a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake
112index 4fccdc4..b76e1e5 100644
113--- a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake
114+++ b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake
115@@ -1,6 +1,6 @@
116
117 find_package(Qt4 REQUIRED)
118-find_package(Qt5Core REQUIRED)
119+#find_package(Qt5Core REQUIRED)
120
121 add_executable(mainexe main.cpp)
122 target_link_libraries(mainexe Qt4::QtCore Qt5::Core)