[oe-commits] [openembedded-core] 08/24: cmake.bbclass: avoid treating imports as system includes

git at git.openembedded.org git at git.openembedded.org
Wed Sep 7 23:37:51 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit a5bf690e27a32c5470a4e110ab58ed0a92b9d039
Author: Andreas Müller <schnitzeltony at googlemail.com>
AuthorDate: Tue Sep 6 23:41:23 2016 +0200

    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
    
    Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/cmake.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 5203d8a..7091f8b 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -120,6 +120,7 @@ cmake_do_configure() {
 	  -DCMAKE_INSTALL_SO_NO_EXE=0 \
 	  -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
 	  -DCMAKE_VERBOSE_MAKEFILE=1 \
+	  -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \
 	  ${EXTRA_OECMAKE} \
 	  -Wno-dev
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list