From 7d2df83b5184b4566d43dd8a8d9abeb7c1d85694 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 6 Jun 2019 16:58:56 +0300 Subject: [PATCH] libc: minimal: Add headers as system includes This is consistent with how newlib headers are treated, and will have effect of ninlibc headers to be further down in the include order. This is important, because some POSIX subsys headers override those of libc. Without this change, we can't streamline POSIX build config using zephyr_interface_library_named() cmake directive, because includes will be in wrong order. Signed-off-by: Paul Sokolovsky --- lib/libc/minimal/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/minimal/CMakeLists.txt b/lib/libc/minimal/CMakeLists.txt index 3ac2ebade1c..036a4f139c0 100644 --- a/lib/libc/minimal/CMakeLists.txt +++ b/lib/libc/minimal/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 -zephyr_include_directories(include) +zephyr_system_include_directories(include) zephyr_library() zephyr_library_sources(