[3/5] cmake.bbclass: append includedir to implicit include dirs

Submitted by Mikko Rapeli on Nov. 29, 2018, 12:21 p.m. | Patch ID: 156743


Message ID 1543494097-19534-4-git-send-email-mikko.rapeli@bmw.de
State Accepted
Commit 9c2227d5d960f93e00791157354f0c920fbecf39
Headers show

Commit Message

Mikko Rapeli Nov. 29, 2018, 12:21 p.m.
From: Michael Ho <Michael.Ho@bmw.de>

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@bmw.de>
Cc: Pascal Bach <pascal.bach@siemens.com>
 meta/classes/cmake.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index fd40a98..485aea6 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