mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
cmake: fix reporting of SDL_TESTS
This commit is contained in:
@@ -3102,6 +3102,10 @@ if (SDL_ASAN)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(SDL_TESTS)
|
||||||
|
set(HAVE_TESTS ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Create target that collects all all generated include files.
|
# Create target that collects all all generated include files.
|
||||||
add_custom_target(sdl_headers_copy
|
add_custom_target(sdl_headers_copy
|
||||||
DEPENDS ${SDL_GENERATED_HEADERS})
|
DEPENDS ${SDL_GENERATED_HEADERS})
|
||||||
@@ -3483,6 +3487,7 @@ endif()
|
|||||||
##### Tests subproject (must appear after the install/uninstall targets) #####
|
##### Tests subproject (must appear after the install/uninstall targets) #####
|
||||||
|
|
||||||
if(SDL_TESTS)
|
if(SDL_TESTS)
|
||||||
|
set(HAVE_TESTS ON)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user