cmake: use INTERFACE_SOURCES in zephyr_syscall_header

Instead of INTERFACE_INCLUDE_DIRECTORIES, because header files are used,
not directories. Headers were added to both, target sources and include
directories.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-04-05 12:12:50 +02:00 committed by Carles Cufí
parent abf32ced74
commit ca4e5d9c98
2 changed files with 1 additions and 5 deletions

View file

@ -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)

View file

@ -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}