summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-12-28 21:04:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-31 11:53:26 +0000
commit1027f7a3c3632321f542140b5f13e9f51879b0c4 (patch)
treedb0375a9bde297b0db0357ee30d8a0287c29c0c2 /meta/recipes-devtools/cmake/cmake
parentd880402d75832edc95dba16a310a40864ac3f20f (diff)
downloadpoky-1027f7a3c3632321f542140b5f13e9f51879b0c4.tar.gz
cmake: update 3.18.4 -> 3.19.2
License-Update: only the first two lines contain licensing info (From OE-Core rev: 72f86e4e986b70600a746eb219315b81b0367be3) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake')
-rw-r--r--meta/recipes-devtools/cmake/cmake/0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch6
-rw-r--r--meta/recipes-devtools/cmake/cmake/0001-cm_cxx_features.cmake-do-not-try-to-run-the-test-bin.patch26
-rw-r--r--meta/recipes-devtools/cmake/cmake/0002-cmake-Prevent-the-detection-of-Qt5.patch22
3 files changed, 40 insertions, 14 deletions
diff --git a/meta/recipes-devtools/cmake/cmake/0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch b/meta/recipes-devtools/cmake/cmake/0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch
index c4f81b27b5..8181510324 100644
--- a/meta/recipes-devtools/cmake/cmake/0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch
+++ b/meta/recipes-devtools/cmake/cmake/0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch
@@ -1,4 +1,4 @@
1From dd0fe8d54def4684d360b3e9b10e963ef0208202 Mon Sep 17 00:00:00 2001 1From 66d5b27dc37ef6243f6549e16d0285ba6c064a6e Mon Sep 17 00:00:00 2001
2From: Cody P Schafer <dev@codyps.com> 2From: Cody P Schafer <dev@codyps.com>
3Date: Thu, 27 Apr 2017 11:35:05 -0400 3Date: Thu, 27 Apr 2017 11:35:05 -0400
4Subject: [PATCH] CMakeDetermineSystem: use oe environment vars to load default 4Subject: [PATCH] CMakeDetermineSystem: use oe environment vars to load default
@@ -25,10 +25,10 @@ Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
25 1 file changed, 7 insertions(+) 25 1 file changed, 7 insertions(+)
26 26
27diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake 27diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
28index f3ec4da..bb05656 100644 28index bae270d..5bb6bc0 100644
29--- a/Modules/CMakeDetermineSystem.cmake 29--- a/Modules/CMakeDetermineSystem.cmake
30+++ b/Modules/CMakeDetermineSystem.cmake 30+++ b/Modules/CMakeDetermineSystem.cmake
31@@ -81,6 +81,13 @@ else() 31@@ -111,6 +111,13 @@ else()
32 endif() 32 endif()
33 endif() 33 endif()
34 34
diff --git a/meta/recipes-devtools/cmake/cmake/0001-cm_cxx_features.cmake-do-not-try-to-run-the-test-bin.patch b/meta/recipes-devtools/cmake/cmake/0001-cm_cxx_features.cmake-do-not-try-to-run-the-test-bin.patch
new file mode 100644
index 0000000000..4483bbce18
--- /dev/null
+++ b/meta/recipes-devtools/cmake/cmake/0001-cm_cxx_features.cmake-do-not-try-to-run-the-test-bin.patch
@@ -0,0 +1,26 @@
1From ca105727dc4862733c3aad09e9de819be63a7b6b Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Sun, 27 Dec 2020 23:18:10 +0100
4Subject: [PATCH] cm_cxx_features.cmake: do not try to run the test binary
5
6This causes errors when cross compiling cmake.
7
8Upstream-Status: Pending
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10---
11 Source/Checks/cm_cxx_features.cmake | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
15index 663d89a..e8dca3b 100644
16--- a/Source/Checks/cm_cxx_features.cmake
17+++ b/Source/Checks/cm_cxx_features.cmake
18@@ -81,7 +81,7 @@ if(CMake_HAVE_CXX_MAKE_UNIQUE)
19 endif()
20 cm_check_cxx_feature(unique_ptr)
21 if (NOT CMAKE_CXX_STANDARD LESS "17")
22- cm_check_cxx_feature(filesystem TRY_RUN)
23+ cm_check_cxx_feature(filesystem)
24 else()
25 set(CMake_HAVE_CXX_FILESYSTEM FALSE)
26 endif()
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 162bfe5783..33db07ccf0 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 106cf5134d22db889e4ddf2f98ec302d5f4b9ca7 Mon Sep 17 00:00:00 2001 1From 98abade8cc119e076e4c5f1461c5188f6d49c1d8 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] cmake: Prevent the detection of Qt5 4Subject: [PATCH] cmake: Prevent the detection of Qt5
@@ -25,23 +25,23 @@ Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
25 7 files changed, 8 insertions(+), 9 deletions(-) 25 7 files changed, 8 insertions(+), 9 deletions(-)
26 26
27diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt 27diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
28index 98dd0e2..252302b 100644 28index 452a303..d0a9fb4 100644
29--- a/Source/QtDialog/CMakeLists.txt 29--- a/Source/QtDialog/CMakeLists.txt
30+++ b/Source/QtDialog/CMakeLists.txt 30+++ b/Source/QtDialog/CMakeLists.txt
31@@ -3,7 +3,7 @@ 31@@ -3,7 +3,7 @@
32 32
33 project(QtDialog) 33 project(QtDialog)
34 CMake_OPTIONAL_COMPONENT(cmake-gui) 34 CMake_OPTIONAL_COMPONENT(cmake-gui)
35-find_package(Qt5Widgets QUIET) 35-find_package(Qt5Widgets REQUIRED)
36+#find_package(Qt5Widgets QUIET) 36+#find_package(Qt5Widgets REQUIRED)
37 if (Qt5Widgets_FOUND) 37
38 include_directories(${Qt5Widgets_INCLUDE_DIRS}) 38 set(CMake_QT_EXTRA_LIBRARIES)
39 add_definitions(${Qt5Widgets_DEFINITONS}) 39
40diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt 40diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
41index db6dbf3..5b26879 100644 41index 1fb47cb..e022229 100644
42--- a/Tests/CMakeLists.txt 42--- a/Tests/CMakeLists.txt
43+++ b/Tests/CMakeLists.txt 43+++ b/Tests/CMakeLists.txt
44@@ -215,7 +215,7 @@ if(BUILD_TESTING) 44@@ -251,7 +251,7 @@ if(BUILD_TESTING)
45 set(CMake_TEST_Qt5 1) 45 set(CMake_TEST_Qt5 1)
46 endif() 46 endif()
47 if(CMake_TEST_Qt5) 47 if(CMake_TEST_Qt5)
@@ -96,10 +96,10 @@ index c08efc4..87e25d9 100644
96 set(CMAKE_CXX_STANDARD 11) 96 set(CMAKE_CXX_STANDARD 11)
97 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin) 97 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin)
98diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt 98diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
99index 10e66c3..ecc4eeb 100644 99index 370dd76..6bacbff 100644
100--- a/Tests/RunCMake/CMakeLists.txt 100--- a/Tests/RunCMake/CMakeLists.txt
101+++ b/Tests/RunCMake/CMakeLists.txt 101+++ b/Tests/RunCMake/CMakeLists.txt
102@@ -440,7 +440,7 @@ if(NOT WIN32) 102@@ -473,7 +473,7 @@ if(NOT WIN32)
103 endif () 103 endif ()
104 104
105 find_package(Qt4 QUIET) 105 find_package(Qt4 QUIET)