diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2016-09-06 23:41:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-08 00:32:43 +0100 |
commit | 79d45bf56d6cabbe3b66859833c7c3ea93465728 (patch) | |
tree | d5bd57180f06e7baf901253bdf0807ff2d03df5e /meta | |
parent | 23ec1fcfa4c2b71ed0c3624c1cec4592fd6aa658 (diff) | |
download | poky-79d45bf56d6cabbe3b66859833c7c3ea93465728.tar.gz |
cmake.bbclass: avoid treating imports as system includes
CMake sets all imported headers as system headers. This causes trouble for c++
projects [1].
Thanks to Jack Mitchell for pointing to the setting [2]. Build tested upon
meta-qt5-extra-world which had lots of fallout before.
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
[2] http://lists.openembedded.org/pipermail/openembedded-core/2016-September/126067.html
(From OE-Core rev: a5bf690e27a32c5470a4e110ab58ed0a92b9d039)
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/cmake.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 5203d8aca1..7091f8ba81 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -120,6 +120,7 @@ cmake_do_configure() { | |||
120 | -DCMAKE_INSTALL_SO_NO_EXE=0 \ | 120 | -DCMAKE_INSTALL_SO_NO_EXE=0 \ |
121 | -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ | 121 | -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ |
122 | -DCMAKE_VERBOSE_MAKEFILE=1 \ | 122 | -DCMAKE_VERBOSE_MAKEFILE=1 \ |
123 | -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ | ||
123 | ${EXTRA_OECMAKE} \ | 124 | ${EXTRA_OECMAKE} \ |
124 | -Wno-dev | 125 | -Wno-dev |
125 | } | 126 | } |