Don't run conftests when only building the servers.

This commit is contained in:
Pentarctagon 2022-08-24 21:11:53 -05:00
parent 34369f62d2
commit 0946d8b3f0

View file

@ -142,7 +142,7 @@ endif()
########### Conf Tests ###########
if(NOT MSVC)
if((ENABLE_GAME OR ENABLE_TESTS) AND NOT MSVC)
# test for SDL2
add_executable(sdl2 conftests/sdl2.cpp)
set_target_properties(sdl2 PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Testing)