VisualC: Set the correct component to false.
Some checks failed
Build (Android) / CMake (push) Has been cancelled
Build (Android) / Android.mk (push) Has been cancelled
Build (C/P Actions) / FreeBSD (push) Has been cancelled
Build (Emscripten) / emscripten (push) Has been cancelled
Build (iOS/tvOS) / iOS (push) Has been cancelled
Build (iOS/tvOS) / tvOS (push) Has been cancelled
Build / Intel Compiler (Ubuntu 20.04) (push) Has been cancelled
Build / Intel oneAPI (Ubuntu 20.04) (push) Has been cancelled
Build / MacOS (autotools) (push) Has been cancelled
Build / Ubuntu 20.04 (autotools) (push) Has been cancelled
Build / Ubuntu 22.04 (autotools) (push) Has been cancelled
Build / MacOS (CMake) (push) Has been cancelled
Build / Windows (clang32) (push) Has been cancelled
Build / Windows (clang64) (push) Has been cancelled
Build / Windows (mingw32) (push) Has been cancelled
Build / Windows (ucrt64) (push) Has been cancelled
Build / Windows (mingw64) (push) Has been cancelled
Build / Ubuntu 20.04 (CMake) (push) Has been cancelled
Build / Ubuntu 22.04 (CMake) (push) Has been cancelled
Build (MSVC) / Windows (ARM) (push) Has been cancelled
Build (MSVC) / Windows (ARM64) (push) Has been cancelled
Build (MSVC) / Windows static VCRT (x86) (push) Has been cancelled
Build (MSVC) / Windows (x86) (push) Has been cancelled
Build (MSVC) / UWP (x64) (push) Has been cancelled
Build (MSVC) / Windows static VCRT (x64) (push) Has been cancelled
Build (MSVC) / Windows (x64) (push) Has been cancelled
Build (MSVC) / Windows (clang-cl x86) (push) Has been cancelled
Build (MSVC) / Windows (clang-cl x64) (push) Has been cancelled
Build (Nintendo 3DS) / n3ds (push) Has been cancelled
Build (Sony Playstation 2) / ps2 (push) Has been cancelled
Build (Sony Playstation Portable) / psp (push) Has been cancelled
Build (RISC OS) / CMake (push) Has been cancelled
Build (RISC OS) / autotools (push) Has been cancelled
Build (Sony Playstation Vita) / GLES (PVR_PSP2 + gl4es4vita) (push) Has been cancelled
Build (Sony Playstation Vita) / GLES (pib) (push) Has been cancelled
Build (OpenWatcom) / OS/2 (push) Has been cancelled
Build (OpenWatcom) / Windows (push) Has been cancelled

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

(cherry picked from commit 378234437f)
This commit is contained in:
Pierre Wendling 2024-10-13 09:11:30 +02:00 committed by Sam Lantinga
parent bbcc9421d6
commit 1842745c9c

View file

@ -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)