From 2bb41699d8c864b39d60d124fc644b51bd5230e3 Mon Sep 17 00:00:00 2001 From: kirpy Date: Tue, 10 Mar 2026 12:41:38 -0700 Subject: [PATCH 1/2] fix build failure caused by clang-tidy disable clang-tidy by default since it's strict `--warnings-as-errors=*` flag was causing build to fail. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d3a63c3..6a8afe0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ set(FTXUI_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) FetchContent_MakeAvailable(tomlplusplus ftxui) -option(ENABLE_CLANG_TIDY "Enable clang-tidy" ON) +option(ENABLE_CLANG_TIDY "Enable clang-tidy" OFF) if(ENABLE_CLANG_TIDY) find_program(CLANG_TIDY clang-tidy) From 1d4ae0d4a1aa3d43cbae263a35d0a9e89bbcdf0e Mon Sep 17 00:00:00 2001 From: kirpy Date: Tue, 10 Mar 2026 12:57:31 -0700 Subject: [PATCH 2/2] add dependancy check --- install/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install/install.sh b/install/install.sh index 5164529..1e59425 100755 --- a/install/install.sh +++ b/install/install.sh @@ -10,7 +10,16 @@ info() { echo -e "\033[1;34m==>\033[0m $1"; } success() { echo -e "\033[1;32m==>\033[0m $1"; } error() { echo -e "\033[1;31m==>\033[0m $1" >&2; } +check_deps() { + if ! command -v cmake &> /dev/null; then + error "Missing required dependency: cmake" + echo "Install with: sudo apt install cmake" + exit 1 + fi +} + build() { + check_deps info "Building..." cmake -B "$BUILD_DIR" -S "$PROJECT_DIR" -DCMAKE_BUILD_TYPE=Release cmake --build "$BUILD_DIR" -j"$(nproc)"