cmake: fix -DSRB2_CONFIG_ENABLE_TESTS=OFF build

This commit is contained in:
James R 2023-02-20 02:15:50 -08:00 committed by SteelT
parent 34f2594b48
commit 7261db1eee

View file

@ -293,7 +293,9 @@ if(SRB2_CONFIG_PROFILEMODE AND "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
endif() endif()
add_subdirectory(sdl) add_subdirectory(sdl)
add_subdirectory(tests) if(SRB2_CONFIG_ENABLE_TESTS)
add_subdirectory(tests)
endif()
# strip debug symbols into separate file when using gcc. # strip debug symbols into separate file when using gcc.
# to be consistent with Makefile, don't generate for OS X. # to be consistent with Makefile, don't generate for OS X.