Commit 4c255377 authored by Ulrich Huber's avatar Ulrich Huber
Browse files

[fix] Link toki-libc-repl-sys instead of its headers against freertos-headers

parent 00701db6
......@@ -16,17 +16,21 @@ find_package(
REQUIRED
)
find_package(
freertos-headers 10.0.0
REQUIRED
)
add_library(
toki-libc-repl-sys
#
STATIC
""
INTERFACE
)
target_link_libraries(
toki-libc-repl-sys
PUBLIC toki-libc-repl-sys-headers
INTERFACE toki-libc-repl-sys-headers
INTERFACE freertos-headers
)
......
......@@ -10,28 +10,12 @@ project(
LANGUAGES C ASM
)
find_package(
freertos-headers 10.0.0
REQUIRED
)
find_package(
toki-elfloader-config-headers 0.1
REQUIRED
)
add_library(
toki-libc-repl-sys-headers
#
INTERFACE
)
target_link_libraries(
toki-libc-repl-sys-headers
INTERFACE freertos-headers
toki-elfloader-config-headers
)
target_include_directories(
toki-libc-repl-sys-headers
......
......@@ -2,9 +2,6 @@
include(CMakeFindDependencyMacro)
find_dependency(freertos-headers)
find_dependency(toki-elfloader-config-headers 0.1)
# Import targets
include(${CMAKE_CURRENT_LIST_DIR}/toki-libc-repl-sys-headers-targets.cmake)
......
......@@ -3,6 +3,7 @@
include(CMakeFindDependencyMacro)
find_dependency(toki-libc-repl-sys-headers)
find_dependency(freertos-headers)
# Import targets
include(${CMAKE_CURRENT_LIST_DIR}/toki-libc-repl-sys-targets.cmake)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment