diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d45997..8e53923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,12 @@ include("ElfTransformations") include("GenerateBootableIso") #[============================================================================[ +# Global Build System Options +#]============================================================================] + +option(TEACHOS_ENABLE_LINTING "Enable linting during build" ON) + +#[============================================================================[ # Global Build System Configuration #]============================================================================] @@ -32,6 +38,17 @@ add_compile_options( ) #[============================================================================[ +# Global Linting Configuration +#]============================================================================] + +find_program(CLANG_TIDY_EXE "clang-tidy") + +if(CLANG_TIDY_EXE AND TEACHOS_ENABLE_LINTING) + set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY_EXE}") + set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXE}") +endif() + +#[============================================================================[ # Kernel Executable #]============================================================================] |
