Browse Source

VisualC: Set the correct component to false.

When SDL2_main would not be found, it would incorrectly flag the shared SDL2 library as not found.

(cherry picked from commit 378234437fa2a99224391d5578f46971e190c0b7)
Pierre Wendling 10 months ago
parent
commit
1842745c9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      VisualC/pkg-support/cmake/sdl2-config.cmake

+ 1 - 1
VisualC/pkg-support/cmake/sdl2-config.cmake

@@ -94,7 +94,7 @@ if(EXISTS "${_sdl2main_library}")
     endif()
     set(SDL2_SDL2main_FOUND TRUE)
 else()
-    set(SDL2_SDL2_FOUND FALSE)
+    set(SDL2_SDL2main_FOUND FALSE)
 endif()
 unset(_sdl2main_library)