Commit 8047ece180a2c2f5d83f66e1a6dba9b6256602b9

Sam Lantinga 2022-10-23T16:34:50

Merge commit '5ed091c12d4edefb366d78217b72cb75b563bfcd' into main

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 00b6a23..27160ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3102,6 +3102,10 @@ if (SDL_ASAN)
   endif()
 endif()
 
+if(SDL_TESTS)
+  set(HAVE_TESTS ON)
+endif()
+
 # Create target that collects all all generated include files.
 add_custom_target(sdl_headers_copy
     DEPENDS ${SDL_GENERATED_HEADERS})
@@ -3483,6 +3487,7 @@ endif()
 ##### Tests subproject (must appear after the install/uninstall targets) #####
 
 if(SDL_TESTS)
+  set(HAVE_TESTS ON)
   enable_testing()
   add_subdirectory(test)
 endif()