From 52a28167c9e19b8f0e804a05cc3a2f4dd2c7a69c Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 5 Mar 2026 14:27:54 +0000 Subject: [PATCH] fix: SatDump build failure on GCC 15 (Ubuntu 25.10+) Add -Wno-template-body to CMAKE_CXX_FLAGS to suppress GCC 15's -Wtemplate-body warning that breaks SatDump's bundled sol2/sol.hpp. The flag is silently ignored by older GCC versions. Closes #180 Co-Authored-By: Claude Opus 4.6 --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 7e2a590..401f0ef 100755 --- a/setup.sh +++ b/setup.sh @@ -957,7 +957,8 @@ install_satdump_from_source_debian() { ) & progress_pid=$! - if cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=OFF -DCMAKE_INSTALL_LIBDIR=lib .. >"$build_log" 2>&1 \ + if cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=OFF -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_CXX_FLAGS="-Wno-template-body" .. >"$build_log" 2>&1 \ && make -j "$(nproc)" >>"$build_log" 2>&1; then kill $progress_pid 2>/dev/null; wait $progress_pid 2>/dev/null $SUDO make install >/dev/null 2>&1