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
2 changed files with 1 additions and 5 deletions
|
@ -840,7 +840,7 @@ add_subdirectory(kernel)
|
||||||
get_property(
|
get_property(
|
||||||
syscalls_file_list
|
syscalls_file_list
|
||||||
TARGET syscalls_interface
|
TARGET syscalls_interface
|
||||||
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
PROPERTY INTERFACE_SOURCES
|
||||||
)
|
)
|
||||||
file(CONFIGURE OUTPUT ${syscalls_file_list_output}
|
file(CONFIGURE OUTPUT ${syscalls_file_list_output}
|
||||||
CONTENT "@syscalls_file_list@" @ONLY)
|
CONTENT "@syscalls_file_list@" @ONLY)
|
||||||
|
|
|
@ -1634,10 +1634,6 @@ function(zephyr_syscall_header)
|
||||||
syscalls_interface INTERFACE
|
syscalls_interface INTERFACE
|
||||||
${header_file}
|
${header_file}
|
||||||
)
|
)
|
||||||
target_include_directories(
|
|
||||||
syscalls_interface INTERFACE
|
|
||||||
${header_file}
|
|
||||||
)
|
|
||||||
add_dependencies(
|
add_dependencies(
|
||||||
syscalls_interface
|
syscalls_interface
|
||||||
${header_file}
|
${header_file}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue