From 196aa1ea44fe67849a685e6c9944d2d9a900dea8 Mon Sep 17 00:00:00 2001 From: Dan Cristoloveanu Date: Fri, 6 Mar 2026 13:49:38 -0800 Subject: [PATCH] Add build_reals option to gate reals libraries Add build_reals CMake option to allow disabling the building of reals libraries when they are not needed, such as in official builds, integration test builds, and performance test builds. This reduces build times by excluding test-only libraries from non-unit-test configurations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 315ecbd..562fae5 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,7 +1,9 @@ #Licensed under the MIT license. See LICENSE file in the project root for full license information. #reals -add_subdirectory(reals) +if(${build_reals}) + add_subdirectory(reals) +endif() #unittests if(${run_unittests})