summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/cmake/cmake.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc
index 1d5303fdb2..a0fcf490ec 100644
--- a/meta/recipes-devtools/cmake/cmake.inc
+++ b/meta/recipes-devtools/cmake/cmake.inc
@@ -21,6 +21,28 @@ SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz
21 21
22inherit autotools-brokensep 22inherit autotools-brokensep
23 23
24# Ugly hack to work around undefined OE_QMAKE_PATH_EXTERNAL_HOST_BINS variable
25# and possibly missing qmake binary (qtbase-native can be removed from sysroot
26# e.g. in order to upgrade it, even when there is target qtbase)
27
28# Fixes errors like this in cmake(-native).do_configure:
29#| -- Performing Test run_pic_test - Success
30#| CMake Error at tmp-eglibc/sysroots/qemuarm/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):
31#| The imported target "Qt5::Core" references the file
32#|
33#| "/qmake"
34#|
35#| but this file does not exist. Possible reasons include:
36
37do_configure_prepend() {
38 sed -i 's/^find_package(Qt5Core QUIET)$/#find_package(Qt5Core QUIET)/g' ${S}/Tests/RunCMake/CMakeLists.txt
39 sed -i 's/^find_package(Qt5Core REQUIRED)/#find_package(Qt5Core REQUIRED)/g' ${S}/Tests/RunCMake/IncompatibleQt/IncompatibleQt.cmake
40 sed -i 's/^ find_package(Qt5Widgets REQUIRED)/# find_package(Qt5Widgets REQUIRED)/g' ${S}/Tests/QtAutomoc/CMakeLists.txt
41 sed -i 's/^find_package(Qt5Core REQUIRED)/#find_package(Qt5Core REQUIRED)/g' ${S}/Tests/Qt4And5Automoc/CMakeLists.txt
42 sed -i 's/^ find_package(Qt5Widgets QUIET NO_MODULE)/# find_package(Qt5Widgets QUIET NO_MODULE)/g' ${S}/Tests/CMakeLists.txt
43 sed -i 's/^find_package(Qt5Widgets QUIET)/#find_package(Qt5Widgets QUIET)/g' ${S}/Source/QtDialog/CMakeLists.txt
44}
45
24do_configure () { 46do_configure () {
25 ./configure --prefix=${prefix} 47 ./configure --prefix=${prefix}
26} 48}