Skip to content

Commit

Permalink
cmake: use INTERFACE_SOURCES in zephyr_syscall_header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gmarull authored and carlescufi committed Apr 9, 2024
1 parent abf32ce commit ca4e5d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 0 additions & 4 deletions cmake/modules/extensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit ca4e5d9

Please sign in to comment.