From 7f94b8cee8f1b6dff8629feb497f2d09913693ad Mon Sep 17 00:00:00 2001 From: Dan Cristoloveanu Date: Fri, 6 Mar 2026 13:49:40 -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 4a32692..93dd0e7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,7 +1,9 @@ #Copyright (C) Microsoft Corporation. All rights reserved. #Licensed under the MIT license. See LICENSE file in the project root for full license information. -add_subdirectory(reals) +if(${build_reals}) + add_subdirectory(reals) +endif() # unit tests if(${run_unittests})