diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-01 08:10:10 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-01 08:10:10 +0200 |
| commit | 9b80bd2ca528a376c2bb6831020b3d78e4b252d6 (patch) | |
| tree | 514189c4b1690d746019b1421fb4fb235288ce98 /CMakeLists.txt | |
| parent | cd70186845c90aaaefbdb21b6d0f3c7caaa90a27 (diff) | |
| download | teachos-9b80bd2ca528a376c2bb6831020b3d78e4b252d6.tar.xz teachos-9b80bd2ca528a376c2bb6831020b3d78e4b252d6.zip | |
build: fix kernel+arch build
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cc8a2f..002ab0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,15 +89,10 @@ if(Doxygen_FOUND AND TEACHOS_GENERATE_DOCS) endif() #[============================================================================[ -# Global Targets +# Build Host Testing #]============================================================================] -if(CMAKE_CROSSCOMPILING) - add_subdirectory("arch/${CMAKE_SYSTEM_PROCESSOR}") - add_subdirectory("kernel") - add_subdirectory("kapi") - add_subdirectory("libs") -else() +if(NOT CMAKE_CROSSCOMPILING) include("EnableCoverage") enable_testing() @@ -110,6 +105,16 @@ else() CXX_CLANG_TIDY "" ) endif() +endif() - add_subdirectory("libs") +#[============================================================================[ +# Global Targets +#]============================================================================] + +if(CMAKE_CROSSCOMPILING) + add_subdirectory("arch/${CMAKE_SYSTEM_PROCESSOR}") endif() + +add_subdirectory("kapi") +add_subdirectory("kernel") +add_subdirectory("libs") |
