Skip to content

Commit

Permalink
libsel4bench: fix include order
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
axel-h committed Apr 12, 2024
1 parent 9a7970f commit 8bbbe95
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions libsel4bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ elseif(KernelArchARM)
src/arch/${KernelArch}/armv/${KernelArmArmV}/event_counters.c
src/arch/${KernelArch}/cpu/${KernelArmCPU}/event_counters.c
)
target_include_directories(
sel4bench
PUBLIC
"arch_include/${KernelArch}/armv/${KernelArmArmV}"
"arch_include/${KernelArch}/cpu/${KernelArmCPU}"
)
if(KernelArchArmV7ve)
target_include_directories(sel4bench PUBLIC "arch_include/${KernelArch}/armv/armv7-a")
endif()
elseif(KernelArchRiscV)
# empty
else()
Expand All @@ -48,14 +57,7 @@ endif()

target_include_directories(
sel4bench
PUBLIC
include
"arch_include/${KernelArch}/armv/${KernelArmArmV}"
"arch_include/${KernelArch}/cpu/${KernelArmCPU}"
"sel4_arch_include/${KernelSel4Arch}"
"arch_include/${KernelArch}"
PUBLIC "sel4_arch_include/${KernelSel4Arch}" "arch_include/${KernelArch}" "include"
)
if(KernelArmArmV STREQUAL "armv7ve")
target_include_directories(sel4bench PUBLIC "arch_include/${KernelArch}/armv/armv7-a")
endif()

target_link_libraries(sel4bench muslc sel4 utils sel4_autoconf)

0 comments on commit 8bbbe95

Please sign in to comment.