From 8bd42a8bcbfb2c177ac1c091d7b8d80d09380a12 Mon Sep 17 00:00:00 2001 From: karen-nix Date: Thu, 12 Nov 2026 11:38:56 -0600 Subject: [PATCH 1/2] Update CMakeLists.txt - only download catch22 tests are enabled catch 2 registers false positives in SAST scans; the ability to avoid catch for non testing builds --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5173978..f8486d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,12 +67,11 @@ GIT_SHALLOW TRUE SYSTEM ) -FetchContent_MakeAvailable(catch2) - ### Tests if(JSON_STRUCT_OPT_BUILD_TESTS) enable_testing() add_subdirectory(tests) + FetchContent_MakeAvailable(catch2) endif() ### Benchmarks From 7ee417c1b7260c83b1d21f7e30e962429c001e9c Mon Sep 17 00:00:00 2001 From: karen-nix Date: Fri, 13 Nov 2026 09:45:26 -0600 Subject: [PATCH 2/2] Update CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8486d4..ec70de4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,9 +69,9 @@ SYSTEM ### Tests if(JSON_STRUCT_OPT_BUILD_TESTS) + FetchContent_MakeAvailable(catch2) enable_testing() add_subdirectory(tests) - FetchContent_MakeAvailable(catch2) endif() ### Benchmarks