From b90baafcfce75d933e8f17bc26754003d4dfdb1d Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 20 Feb 2023 02:15:50 -0800 Subject: [PATCH] cmake: fix -DSRB2_CONFIG_ENABLE_TESTS=OFF build --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bc11d98a1..ce816523e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -541,7 +541,9 @@ add_subdirectory(sdl) add_subdirectory(objects) add_subdirectory(acs) add_subdirectory(rhi) -add_subdirectory(tests) +if(SRB2_CONFIG_ENABLE_TESTS) + add_subdirectory(tests) +endif() add_subdirectory(menus) # strip debug symbols into separate file when using gcc.