diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d802277a68..20ff0c9caaf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -840,7 +840,7 @@ add_subdirectory(kernel) get_property( syscalls_file_list TARGET syscalls_interface - PROPERTY INTERFACE_INCLUDE_DIRECTORIES + PROPERTY INTERFACE_SOURCES ) file(CONFIGURE OUTPUT ${syscalls_file_list_output} CONTENT "@syscalls_file_list@" @ONLY) diff --git a/cmake/modules/extensions.cmake b/cmake/modules/extensions.cmake index 32f7531167e..cb878e3b813 100644 --- a/cmake/modules/extensions.cmake +++ b/cmake/modules/extensions.cmake @@ -1634,10 +1634,6 @@ function(zephyr_syscall_header) syscalls_interface INTERFACE ${header_file} ) - target_include_directories( - syscalls_interface INTERFACE - ${header_file} - ) add_dependencies( syscalls_interface ${header_file}