From 44eee493f2fec226719bc7f68a6e4b9ca9581783 Mon Sep 17 00:00:00 2001 From: "Rohr, Stephan" Date: Thu, 24 Aug 2023 04:28:55 -0700 Subject: [PATCH] Disable Estimator tests if BUILD_UNIT_TESTS is set to OFF. --- src/Estimators/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Estimators/CMakeLists.txt b/src/Estimators/CMakeLists.txt index 9f76ac4cf5..8e30d88811 100644 --- a/src/Estimators/CMakeLists.txt +++ b/src/Estimators/CMakeLists.txt @@ -47,4 +47,6 @@ endif() target_include_directories(qmcestimators PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") target_link_libraries(qmcestimators PUBLIC containers qmcham qmcparticle qmcutil) -add_subdirectory(tests) +if(BUILD_UNIT_TESTS) + add_subdirectory(tests) +endif()