cmake: Rename and update .bbappend to match new version from oe-core
authorMartin Jansa <Martin.Jansa@gmail.com>
Tue, 29 Oct 2013 11:16:06 +0000 (12:16 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:45:19 +0000 (08:45 -0800)
(From meta-qt5 rev: faa07fc3a61f16a5de5b548f74c155a81dd86190)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-qt5/recipes-devtools/cmake/cmake_2.8.11.2.bbappend [deleted file]
meta-qt5/recipes-devtools/cmake/cmake_2.8.12.bbappend [new file with mode: 0644]

diff --git a/meta-qt5/recipes-devtools/cmake/cmake_2.8.11.2.bbappend b/meta-qt5/recipes-devtools/cmake/cmake_2.8.11.2.bbappend
deleted file mode 100644 (file)
index 0ad2d2f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# Ugly hack to work around undefined OE_QMAKE_PATH_EXTERNAL_HOST_BINS variable
-# and possibly missing qmake binary (qtbase-native can be removed from sysroot
-# e.g. in order to upgrade it, even when there is target qtbase)
-
-do_configure_prepend() {
-    sed -i 's/^find_package(Qt5Core QUIET)$/#find_package(Qt5Core QUIET)/g' ${S}/Tests/RunCMake/CMakeLists.txt
-}
diff --git a/meta-qt5/recipes-devtools/cmake/cmake_2.8.12.bbappend b/meta-qt5/recipes-devtools/cmake/cmake_2.8.12.bbappend
new file mode 100644 (file)
index 0000000..ebacf72
--- /dev/null
@@ -0,0 +1,20 @@
+# Ugly hack to work around undefined OE_QMAKE_PATH_EXTERNAL_HOST_BINS variable
+# and possibly missing qmake binary (qtbase-native can be removed from sysroot
+# e.g. in order to upgrade it, even when there is target qtbase)
+
+#| -- Performing Test run_pic_test - Success
+#| CMake Error at tmp-eglibc/sysroots/qemuarm/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):
+#|   The imported target "Qt5::Core" references the file
+#|
+#|      "/qmake"
+#|
+#|   but this file does not exist.  Possible reasons include:
+
+do_configure_prepend() {
+    sed -i 's/^find_package(Qt5Core QUIET)$/#find_package(Qt5Core QUIET)/g' ${S}/Tests/RunCMake/CMakeLists.txt
+    sed -i 's/^find_package(Qt5Core REQUIRED)/#find_package(Qt5Core REQUIRED)/g' ${S}/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake
+    sed -i 's/^  find_package(Qt5Widgets REQUIRED)/#  find_package(Qt5Widgets REQUIRED)/g' ${S}/Tests/QtAutomoc/CMakeLists.txt
+    sed -i 's/^find_package(Qt5Core REQUIRED)/#find_package(Qt5Core REQUIRED)/g' ${S}/Tests/Qt4And5Automoc/CMakeLists.txt
+    sed -i 's/^  find_package(Qt5Widgets QUIET NO_MODULE)/#  find_package(Qt5Widgets QUIET NO_MODULE)/g' ${S}/Tests/CMakeLists.txt
+    sed -i 's/^find_package(Qt5Widgets QUIET)/#find_package(Qt5Widgets QUIET)/g' ${S}/Source/QtDialog/CMakeLists.txt
+}