From 718f2d137723601cc546c3a6b3019751bf3b769b Mon Sep 17 00:00:00 2001 From: Patrick Riehecky Date: Tue, 24 Feb 2026 10:33:51 -0600 Subject: [PATCH 1/3] Return explicit compiler check --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 531bd6f..6a33091 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,6 @@ endif() include(GNUInstallDirs) include(CheckCSourceCompiles) include(CheckCCompilerFlag) -enable_testing() # ############################################################################## # Compiler Sanity Test @@ -26,6 +25,11 @@ set(CMAKE_C_STANDARD 23) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS ON) +check_c_source_compiles("int main(void) { return 0; }" CAN_COMPILE) +if(NOT CAN_COMPILE) + message(FATAL_ERROR "C compiler is non-functional") +endif(NOT CAN_COMPILE) + message(STATUS "C Compiler: ${CMAKE_C_COMPILER}") message(STATUS "C Standard: C${CMAKE_C_STANDARD}") message(STATUS "Supported C features: ${CMAKE_C_COMPILE_FEATURES}") From 42d00533498ac5104b1cab0098d0d84a9e8a20b0 Mon Sep 17 00:00:00 2001 From: Patrick Riehecky Date: Tue, 24 Feb 2026 10:36:07 -0600 Subject: [PATCH 2/3] Correct licence typo --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index c76c996..dadb828 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -SPDX-License-Identifier: BSD 3-Clause License +SPDX-License-Identifier: BSD 3-Clause Copyright (c) 2026, Fermi Forward Discovery Group From 3e82c05a963394abed6b43ad822c44acbc5b6890 Mon Sep 17 00:00:00 2001 From: Patrick Riehecky Date: Tue, 24 Feb 2026 10:46:03 -0600 Subject: [PATCH 3/3] Fixup makefiles --- CMakeLists.txt | 4 ++++ test/CMakeLists.txt | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a33091..614d6fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,10 @@ include(GNUInstallDirs) include(CheckCSourceCompiles) include(CheckCCompilerFlag) +# ############################################################################## +# setup test target +enable_testing() + # ############################################################################## # Compiler Sanity Test set(CMAKE_C_STANDARD 23) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 94c7dd3..bce96eb 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,7 +2,6 @@ # Project / modules include(CTest) -enable_testing() # ############################################################################## # Coverage configuration (compiler aware, optional)