From c579b9538d9dccbfc8fcb17ce46680b61d44b9cc Mon Sep 17 00:00:00 2001 From: Dan Cristoloveanu Date: Fri, 6 Mar 2026 13:49:36 -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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5e97149d..2e81ace5 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,8 +1,9 @@ #Copyright (c) Microsoft. 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() if(${run_unittests}) build_test_folder(async_op_ut)