Skip to content

Commit

Permalink
cmake: add inclusion of C++ system headers
Browse files Browse the repository at this point in the history
Excplicitly add C++ system header include path if we are building a c++
app.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Feb 22, 2019
1 parent 02cee91 commit e8f2ffa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ endif()
zephyr_cc_option_ifdef(CONFIG_STACK_USAGE -fstack-usage)

zephyr_system_include_directories(${NOSTDINC})
if(CONFIG_CPLUSPLUS)
zephyr_system_include_directories(${CXX_DIR_LIST})
endif()

# Force an error when things like SYS_INIT(foo, ...) occur with a missing header.
zephyr_cc_option(-Werror=implicit-int)
Expand Down

0 comments on commit e8f2ffa

Please sign in to comment.