[oe-commits] [openembedded-core] 03/05: cmake.bbclass: append includedir to implicit include dirs

git at git.openembedded.org git at git.openembedded.org
Sat Dec 8 22:39:08 UTC 2018


This is an automated email from the git hooks/post-receive script.

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

commit 9997c55613df2f6ca0318b956ff55991ebe39be0
Author: Michael Ho <Michael.Ho at bmw.de>
AuthorDate: Thu Nov 29 14:21:35 2018 +0200

    cmake.bbclass: append includedir to implicit include dirs
    
    This resolves issues with paths being marked as system includes that
    differ from /usr/include but are considered implicit by the toolchain.
    This enables developers to add directories to system includes
    to supress compiler compiler warnings from them.
    
    Signed-off-by: Michael Ho <Michael.Ho at bmw.de>
    Cc: Pascal Bach <pascal.bach at siemens.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/cmake.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index b364d2b..f22d90a 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -108,6 +108,10 @@ list(APPEND CMAKE_MODULE_PATH "${STAGING_DATADIR}/cmake/Modules/")
 # add for non /usr/lib libdir, e.g. /usr/lib64
 set( CMAKE_LIBRARY_PATH ${libdir} ${base_libdir})
 
+# add include dir to implicit includes in case it differs from /usr/include
+list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES ${includedir})
+list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${includedir})
+
 EOF
 }
 

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


More information about the Openembedded-commits mailing list