diff options
-rw-r--r-- | meta/classes/cmake.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index b364d2bc20..f22d90a1d5 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -108,6 +108,10 @@ list(APPEND CMAKE_MODULE_PATH "${STAGING_DATADIR}/cmake/Modules/") | |||
108 | # add for non /usr/lib libdir, e.g. /usr/lib64 | 108 | # add for non /usr/lib libdir, e.g. /usr/lib64 |
109 | set( CMAKE_LIBRARY_PATH ${libdir} ${base_libdir}) | 109 | set( CMAKE_LIBRARY_PATH ${libdir} ${base_libdir}) |
110 | 110 | ||
111 | # add include dir to implicit includes in case it differs from /usr/include | ||
112 | list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES ${includedir}) | ||
113 | list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${includedir}) | ||
114 | |||
111 | EOF | 115 | EOF |
112 | } | 116 | } |
113 | 117 | ||