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 Nov 20, 2023
1 parent 3218f3d commit 535c980
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 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,15 +57,8 @@ endif()

target_include_directories(
sel4bench
PUBLIC
include
"arch_include/${KernelArch}/armv/${KernelArmArmV}"
"arch_include/${KernelArch}/cpu/${KernelArmCPU}"
"sel4_arch_include/${KernelSel4Arch}"
"arch_include/${KernelArch}"
src
PUBLIC "sel4_arch_include/${KernelSel4Arch}" "arch_include/${KernelArch}" "include"
PRIVATE "src"
)
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 535c980

Please sign in to comment.