#[============================================================================[ # Configure the generic settings for the kernel image. # # All the settings (e.g. include paths, linker flags, etc.) applied in this # directly, are expected to be platform independent. #]============================================================================] add_executable("kernel") target_compile_options("kernel" PRIVATE "$<$:-Wall>" "$<$:-Wextra>" "$<$:-Werror>" "$<$:-pedantic-errors>" ) #[============================================================================[ # Apply the platform dependent settings to the kernel image. #]============================================================================] add_subdirectory("arch/${CMAKE_SYSTEM_PROCESSOR}")