Skip to content

Commit

Permalink
libsel4bench: add sanity check for configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <axelheider@gmx.de>
  • Loading branch information
axel-h committed Nov 3, 2023
1 parent 180a1a3 commit d62d0a6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libsel4bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ cmake_minimum_required(VERSION 3.7.2)

project(libsel4bench C)

# Do a fail-safe check that all required configuration variables are set up
set(CHECK_CFG_VARS "KernelArch;KernelSel4Arch;KernelWordSize")
if(KernelArchARM)
list(APPEND CHECK_CFG_VARS "KernelArmArmV;KernelArmCPU")
endif()
foreach(cfg_var IN LISTS CHECK_CFG_VARS)
if((NOT DEFINED ${cfg_var}) OR (NOT ${cfg_var}))
message(FATAL "${PROJECT_NAME} requires setting ${cfg_var}")
endif()
message("${PROJECT_NAME} ${cfg_var}: ${${cfg_var}}")
endforeach()

file(
GLOB
deps
Expand Down

0 comments on commit d62d0a6

Please sign in to comment.