diff options
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.patch | 33 |
1 files changed, 16 insertions, 17 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 8d2dc10ce5..db229e63e2 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,7 +1,8 @@ | |||
| 1 | From b4b6e9b1be33213ede3f612e87840c0045824d9e Mon Sep 17 00:00:00 2001 | 1 | From 5cb6c86696f842274043e7d406f84b3ead1c36e0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Otavio Salvador <otavio@ossystems.com.br> | 2 | From: Otavio Salvador <otavio@ossystems.com.br> |
| 3 | Date: Wed, 17 Jan 2018 10:02:14 -0200 | 3 | Date: Wed, 17 Jan 2018 10:02:14 -0200 |
| 4 | Subject: [PATCH 2/5] cmake: Prevent the detection of Qt5 | 4 | Subject: [PATCH] cmake: Prevent the detection of Qt5 |
| 5 | |||
| 5 | Organization: O.S. Systems Software LTDA. | 6 | Organization: O.S. Systems Software LTDA. |
| 6 | 7 | ||
| 7 | CMake doesn't have dependency on qt4/qt5, so these tests usually fail | 8 | CMake doesn't have dependency on qt4/qt5, so these tests usually fail |
| @@ -12,6 +13,7 @@ while running the test in cmake) | |||
| 12 | Upstream-Status: Inappropriate [configuration] | 13 | Upstream-Status: Inappropriate [configuration] |
| 13 | 14 | ||
| 14 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | 15 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> |
| 16 | |||
| 15 | --- | 17 | --- |
| 16 | Source/QtDialog/CMakeLists.txt | 2 +- | 18 | Source/QtDialog/CMakeLists.txt | 2 +- |
| 17 | Tests/CMakeLists.txt | 2 +- | 19 | Tests/CMakeLists.txt | 2 +- |
| @@ -23,12 +25,12 @@ Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | |||
| 23 | 7 files changed, 8 insertions(+), 9 deletions(-) | 25 | 7 files changed, 8 insertions(+), 9 deletions(-) |
| 24 | 26 | ||
| 25 | diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt | 27 | diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt |
| 26 | index 9ce0323844..06c86d63eb 100644 | 28 | index cb89d19..9e68981 100644 |
| 27 | --- a/Source/QtDialog/CMakeLists.txt | 29 | --- a/Source/QtDialog/CMakeLists.txt |
| 28 | +++ b/Source/QtDialog/CMakeLists.txt | 30 | +++ b/Source/QtDialog/CMakeLists.txt |
| 29 | @@ -6,7 +6,7 @@ if(POLICY CMP0020) | 31 | @@ -3,7 +3,7 @@ |
| 30 | cmake_policy(SET CMP0020 NEW) # Drop when CMake >= 2.8.11 required | 32 | |
| 31 | endif() | 33 | project(QtDialog) |
| 32 | CMake_OPTIONAL_COMPONENT(cmake-gui) | 34 | CMake_OPTIONAL_COMPONENT(cmake-gui) |
| 33 | -find_package(Qt5Widgets QUIET) | 35 | -find_package(Qt5Widgets QUIET) |
| 34 | +#find_package(Qt5Widgets QUIET) | 36 | +#find_package(Qt5Widgets QUIET) |
| @@ -36,10 +38,10 @@ index 9ce0323844..06c86d63eb 100644 | |||
| 36 | include_directories(${Qt5Widgets_INCLUDE_DIRS}) | 38 | include_directories(${Qt5Widgets_INCLUDE_DIRS}) |
| 37 | add_definitions(${Qt5Widgets_DEFINITONS}) | 39 | add_definitions(${Qt5Widgets_DEFINITONS}) |
| 38 | diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt | 40 | diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt |
| 39 | index ed98d974b0..7adfbc301b 100644 | 41 | index e73b277..91b8b67 100644 |
| 40 | --- a/Tests/CMakeLists.txt | 42 | --- a/Tests/CMakeLists.txt |
| 41 | +++ b/Tests/CMakeLists.txt | 43 | +++ b/Tests/CMakeLists.txt |
| 42 | @@ -1342,7 +1342,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release | 44 | @@ -1348,7 +1348,7 @@ ${CMake_SOURCE_DIR}/Utilities/Release/push.bash --dir dev -- '${CMake_BUILD_NIGH |
| 43 | set(CMake_TEST_Qt5 1) | 45 | set(CMake_TEST_Qt5 1) |
| 44 | endif() | 46 | endif() |
| 45 | if(CMake_TEST_Qt5) | 47 | if(CMake_TEST_Qt5) |
| @@ -49,7 +51,7 @@ index ed98d974b0..7adfbc301b 100644 | |||
| 49 | if(CMake_TEST_Qt5 AND Qt5Widgets_FOUND) | 51 | if(CMake_TEST_Qt5 AND Qt5Widgets_FOUND) |
| 50 | add_subdirectory(Qt5Autogen) | 52 | add_subdirectory(Qt5Autogen) |
| 51 | diff --git a/Tests/Qt4And5Automoc/CMakeLists.txt b/Tests/Qt4And5Automoc/CMakeLists.txt | 53 | diff --git a/Tests/Qt4And5Automoc/CMakeLists.txt b/Tests/Qt4And5Automoc/CMakeLists.txt |
| 52 | index ad74961d9f..a9dd74b151 100644 | 54 | index ad74961..a9dd74b 100644 |
| 53 | --- a/Tests/Qt4And5Automoc/CMakeLists.txt | 55 | --- a/Tests/Qt4And5Automoc/CMakeLists.txt |
| 54 | +++ b/Tests/Qt4And5Automoc/CMakeLists.txt | 56 | +++ b/Tests/Qt4And5Automoc/CMakeLists.txt |
| 55 | @@ -3,11 +3,11 @@ cmake_minimum_required(VERSION 2.8.12) | 57 | @@ -3,11 +3,11 @@ cmake_minimum_required(VERSION 2.8.12) |
| @@ -67,7 +69,7 @@ index ad74961d9f..a9dd74b151 100644 | |||
| 67 | 69 | ||
| 68 | set(CMAKE_AUTOMOC ON) | 70 | set(CMAKE_AUTOMOC ON) |
| 69 | diff --git a/Tests/QtAutogen/AutogenGuiTest.cmake b/Tests/QtAutogen/AutogenGuiTest.cmake | 71 | diff --git a/Tests/QtAutogen/AutogenGuiTest.cmake b/Tests/QtAutogen/AutogenGuiTest.cmake |
| 70 | index b76d341a45..a6e0acbafa 100644 | 72 | index b76d341..a6e0acb 100644 |
| 71 | --- a/Tests/QtAutogen/AutogenGuiTest.cmake | 73 | --- a/Tests/QtAutogen/AutogenGuiTest.cmake |
| 72 | +++ b/Tests/QtAutogen/AutogenGuiTest.cmake | 74 | +++ b/Tests/QtAutogen/AutogenGuiTest.cmake |
| 73 | @@ -22,8 +22,7 @@ if (QT_TEST_VERSION EQUAL 4) | 75 | @@ -22,8 +22,7 @@ if (QT_TEST_VERSION EQUAL 4) |
| @@ -81,7 +83,7 @@ index b76d341a45..a6e0acbafa 100644 | |||
| 81 | set(QT_QTCORE_TARGET Qt5::Core) | 83 | set(QT_QTCORE_TARGET Qt5::Core) |
| 82 | set(QT_LIBRARIES Qt5::Widgets) | 84 | set(QT_LIBRARIES Qt5::Widgets) |
| 83 | diff --git a/Tests/QtAutogen/MacOsFW/CMakeLists.txt b/Tests/QtAutogen/MacOsFW/CMakeLists.txt | 85 | diff --git a/Tests/QtAutogen/MacOsFW/CMakeLists.txt b/Tests/QtAutogen/MacOsFW/CMakeLists.txt |
| 84 | index c08efc47a2..87e25d9391 100644 | 86 | index c08efc4..87e25d9 100644 |
| 85 | --- a/Tests/QtAutogen/MacOsFW/CMakeLists.txt | 87 | --- a/Tests/QtAutogen/MacOsFW/CMakeLists.txt |
| 86 | +++ b/Tests/QtAutogen/MacOsFW/CMakeLists.txt | 88 | +++ b/Tests/QtAutogen/MacOsFW/CMakeLists.txt |
| 87 | @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10) | 89 | @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10) |
| @@ -94,10 +96,10 @@ index c08efc47a2..87e25d9391 100644 | |||
| 94 | set(CMAKE_CXX_STANDARD 11) | 96 | set(CMAKE_CXX_STANDARD 11) |
| 95 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin) | 97 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin) |
| 96 | diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt | 98 | diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt |
| 97 | index 1f3e5c3006..8ed8d6ac54 100644 | 99 | index 69f8162..f389523 100644 |
| 98 | --- a/Tests/RunCMake/CMakeLists.txt | 100 | --- a/Tests/RunCMake/CMakeLists.txt |
| 99 | +++ b/Tests/RunCMake/CMakeLists.txt | 101 | +++ b/Tests/RunCMake/CMakeLists.txt |
| 100 | @@ -326,7 +326,7 @@ add_RunCMake_test(configure_file) | 102 | @@ -334,7 +334,7 @@ add_RunCMake_test(configure_file) |
| 101 | add_RunCMake_test(CTestTimeoutAfterMatch) | 103 | add_RunCMake_test(CTestTimeoutAfterMatch) |
| 102 | 104 | ||
| 103 | find_package(Qt4 QUIET) | 105 | find_package(Qt4 QUIET) |
| @@ -107,7 +109,7 @@ index 1f3e5c3006..8ed8d6ac54 100644 | |||
| 107 | add_RunCMake_test(IncompatibleQt) | 109 | add_RunCMake_test(IncompatibleQt) |
| 108 | endif() | 110 | endif() |
| 109 | diff --git a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake | 111 | diff --git a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake |
| 110 | index 4fccdc418f..b76e1e5313 100644 | 112 | index 4fccdc4..b76e1e5 100644 |
| 111 | --- a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake | 113 | --- a/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake |
| 112 | +++ b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake | 114 | +++ b/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake |
| 113 | @@ -1,6 +1,6 @@ | 115 | @@ -1,6 +1,6 @@ |
| @@ -118,6 +120,3 @@ index 4fccdc418f..b76e1e5313 100644 | |||
| 118 | 120 | ||
| 119 | add_executable(mainexe main.cpp) | 121 | add_executable(mainexe main.cpp) |
| 120 | target_link_libraries(mainexe Qt4::QtCore Qt5::Core) | 122 | target_link_libraries(mainexe Qt4::QtCore Qt5::Core) |
| 121 | -- | ||
| 122 | 2.11.0 | ||
| 123 | |||
