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.patch39
1 files changed, 20 insertions, 19 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
index 3bea6935b7..8d2dc10ce5 100644
--- 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
@@ -1,4 +1,4 @@
1From 7a1f4e724f9c68498f401244c2938e784a2e6fbd Mon Sep 17 00:00:00 2001 1From b4b6e9b1be33213ede3f612e87840c0045824d9e Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br> 2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Wed, 17 Jan 2018 10:02:14 -0200 3Date: Wed, 17 Jan 2018 10:02:14 -0200
4Subject: [PATCH 2/5] cmake: Prevent the detection of Qt5 4Subject: [PATCH 2/5] cmake: Prevent the detection of Qt5
@@ -16,14 +16,14 @@ Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
16 Source/QtDialog/CMakeLists.txt | 2 +- 16 Source/QtDialog/CMakeLists.txt | 2 +-
17 Tests/CMakeLists.txt | 2 +- 17 Tests/CMakeLists.txt | 2 +-
18 Tests/Qt4And5Automoc/CMakeLists.txt | 4 ++-- 18 Tests/Qt4And5Automoc/CMakeLists.txt | 4 ++--
19 Tests/QtAutogen/AutogenTest.cmake | 2 +- 19 Tests/QtAutogen/AutogenGuiTest.cmake | 3 +--
20 Tests/QtAutogen/MacOsFW/CMakeLists.txt | 2 +- 20 Tests/QtAutogen/MacOsFW/CMakeLists.txt | 2 +-
21 Tests/RunCMake/CMakeLists.txt | 2 +- 21 Tests/RunCMake/CMakeLists.txt | 2 +-
22 Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake | 2 +- 22 Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake | 2 +-
23 7 files changed, 8 insertions(+), 8 deletions(-) 23 7 files changed, 8 insertions(+), 9 deletions(-)
24 24
25diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt 25diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
26index 330b74729..e7709dee6 100644 26index 9ce0323844..06c86d63eb 100644
27--- a/Source/QtDialog/CMakeLists.txt 27--- a/Source/QtDialog/CMakeLists.txt
28+++ b/Source/QtDialog/CMakeLists.txt 28+++ b/Source/QtDialog/CMakeLists.txt
29@@ -6,7 +6,7 @@ if(POLICY CMP0020) 29@@ -6,7 +6,7 @@ if(POLICY CMP0020)
@@ -36,10 +36,10 @@ index 330b74729..e7709dee6 100644
36 include_directories(${Qt5Widgets_INCLUDE_DIRS}) 36 include_directories(${Qt5Widgets_INCLUDE_DIRS})
37 add_definitions(${Qt5Widgets_DEFINITONS}) 37 add_definitions(${Qt5Widgets_DEFINITONS})
38diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt 38diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
39index b8b724ed8..63f6bb6d2 100644 39index ed98d974b0..7adfbc301b 100644
40--- a/Tests/CMakeLists.txt 40--- a/Tests/CMakeLists.txt
41+++ b/Tests/CMakeLists.txt 41+++ b/Tests/CMakeLists.txt
42@@ -1297,7 +1297,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release 42@@ -1342,7 +1342,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
43 set(CMake_TEST_Qt5 1) 43 set(CMake_TEST_Qt5 1)
44 endif() 44 endif()
45 if(CMake_TEST_Qt5) 45 if(CMake_TEST_Qt5)
@@ -49,7 +49,7 @@ index b8b724ed8..63f6bb6d2 100644
49 if(CMake_TEST_Qt5 AND Qt5Widgets_FOUND) 49 if(CMake_TEST_Qt5 AND Qt5Widgets_FOUND)
50 add_subdirectory(Qt5Autogen) 50 add_subdirectory(Qt5Autogen)
51diff --git a/Tests/Qt4And5Automoc/CMakeLists.txt b/Tests/Qt4And5Automoc/CMakeLists.txt 51diff --git a/Tests/Qt4And5Automoc/CMakeLists.txt b/Tests/Qt4And5Automoc/CMakeLists.txt
52index ad74961d9..a9dd74b15 100644 52index ad74961d9f..a9dd74b151 100644
53--- a/Tests/Qt4And5Automoc/CMakeLists.txt 53--- a/Tests/Qt4And5Automoc/CMakeLists.txt
54+++ b/Tests/Qt4And5Automoc/CMakeLists.txt 54+++ b/Tests/Qt4And5Automoc/CMakeLists.txt
55@@ -3,11 +3,11 @@ cmake_minimum_required(VERSION 2.8.12) 55@@ -3,11 +3,11 @@ cmake_minimum_required(VERSION 2.8.12)
@@ -66,26 +66,27 @@ index ad74961d9..a9dd74b15 100644
66 endif() 66 endif()
67 67
68 set(CMAKE_AUTOMOC ON) 68 set(CMAKE_AUTOMOC ON)
69diff --git a/Tests/QtAutogen/AutogenTest.cmake b/Tests/QtAutogen/AutogenTest.cmake 69diff --git a/Tests/QtAutogen/AutogenGuiTest.cmake b/Tests/QtAutogen/AutogenGuiTest.cmake
70index 8c0a14fca..e9923b21a 100644 70index b76d341a45..a6e0acbafa 100644
71--- a/Tests/QtAutogen/AutogenTest.cmake 71--- a/Tests/QtAutogen/AutogenGuiTest.cmake
72+++ b/Tests/QtAutogen/AutogenTest.cmake 72+++ b/Tests/QtAutogen/AutogenGuiTest.cmake
73@@ -22,7 +22,7 @@ if (QT_TEST_VERSION EQUAL 4) 73@@ -22,8 +22,7 @@ if (QT_TEST_VERSION EQUAL 4)
74 endmacro() 74 endmacro()
75 75
76 elseif(QT_TEST_VERSION EQUAL 5) 76 elseif(QT_TEST_VERSION EQUAL 5)
77-
77- find_package(Qt5Widgets REQUIRED) 78- find_package(Qt5Widgets REQUIRED)
78+ #find_package(Qt5Widgets REQUIRED) 79+ #find_package(Qt5Widgets REQUIRED)
79 80
80 set(QT_QTCORE_TARGET Qt5::Core) 81 set(QT_QTCORE_TARGET Qt5::Core)
81 set(QT_QTGUI_TARGET Qt5::Widgets) 82 set(QT_LIBRARIES Qt5::Widgets)
82diff --git a/Tests/QtAutogen/MacOsFW/CMakeLists.txt b/Tests/QtAutogen/MacOsFW/CMakeLists.txt 83diff --git a/Tests/QtAutogen/MacOsFW/CMakeLists.txt b/Tests/QtAutogen/MacOsFW/CMakeLists.txt
83index 26d201926..e48e1c8de 100644 84index c08efc47a2..87e25d9391 100644
84--- a/Tests/QtAutogen/MacOsFW/CMakeLists.txt 85--- a/Tests/QtAutogen/MacOsFW/CMakeLists.txt
85+++ b/Tests/QtAutogen/MacOsFW/CMakeLists.txt 86+++ b/Tests/QtAutogen/MacOsFW/CMakeLists.txt
86@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10) 87@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10)
87 project(MacOsFW) 88 project(MacOsFW)
88 include("../AutogenTest.cmake") 89 include("../AutogenGuiTest.cmake")
89 90
90-find_package(Qt5Test REQUIRED) 91-find_package(Qt5Test REQUIRED)
91+#find_package(Qt5Test REQUIRED) 92+#find_package(Qt5Test REQUIRED)
@@ -93,10 +94,10 @@ index 26d201926..e48e1c8de 100644
93 set(CMAKE_CXX_STANDARD 11) 94 set(CMAKE_CXX_STANDARD 11)
94 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin) 95 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin)
95diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt 96diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
96index 637c5c2cb..c0376effc 100644 97index 1f3e5c3006..8ed8d6ac54 100644
97--- a/Tests/RunCMake/CMakeLists.txt 98--- a/Tests/RunCMake/CMakeLists.txt
98+++ b/Tests/RunCMake/CMakeLists.txt 99+++ b/Tests/RunCMake/CMakeLists.txt
99@@ -310,7 +310,7 @@ add_RunCMake_test(configure_file) 100@@ -326,7 +326,7 @@ add_RunCMake_test(configure_file)
100 add_RunCMake_test(CTestTimeoutAfterMatch) 101 add_RunCMake_test(CTestTimeoutAfterMatch)
101 102
102 find_package(Qt4 QUIET) 103 find_package(Qt4 QUIET)
@@ -106,7 +107,7 @@ index 637c5c2cb..c0376effc 100644
106 add_RunCMake_test(IncompatibleQt) 107 add_RunCMake_test(IncompatibleQt)
107 endif() 108 endif()
108diff --git a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake 109diff --git a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake
109index 4fccdc418..b76e1e531 100644 110index 4fccdc418f..b76e1e5313 100644
110--- a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake 111--- a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake
111+++ b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake 112+++ b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake
112@@ -1,6 +1,6 @@ 113@@ -1,6 +1,6 @@
@@ -118,5 +119,5 @@ index 4fccdc418..b76e1e531 100644
118 add_executable(mainexe main.cpp) 119 add_executable(mainexe main.cpp)
119 target_link_libraries(mainexe Qt4::QtCore Qt5::Core) 120 target_link_libraries(mainexe Qt4::QtCore Qt5::Core)
120-- 121--
1212.18.0 1222.11.0
122 123