Skip to content

Commit

Permalink
VisualC: Set the correct component to false.
Browse files Browse the repository at this point in the history
When SDL2_main would not be found, it would incorrectly flag the shared SDL2 library as not found.

(cherry picked from commit 3782344)
  • Loading branch information
FtZPetruska authored and slouken committed Oct 13, 2024
1 parent bbcc942 commit 1842745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VisualC/pkg-support/cmake/sdl2-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1842745

Please sign in to comment.