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:
parent
abf32ced74
commit
ca4e5d9c98
|
@ -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)
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue