diff --git a/CMakeLists.txt b/CMakeLists.txt index 0341964c7e..6cb7714a2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -812,6 +812,11 @@ if(CONFIG_BUILD_PROTECTED) $<$:supc++> $<$>:-Wl,--end-group>) + target_include_directories( + nuttx_user SYSTEM + PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include + ${CMAKE_BINARY_DIR}/include_arch) + add_custom_command( OUTPUT User.map COMMAND ${CMAKE_NM} nuttx_user > User.map