e3395a7585
If cmake is invoked with -DSDL_ALSA=OFF, the misleading warning message "Unable to find the alsa development library" is printed. It's misleading because no attempt was actually made to find the ALSA development library. It's always printed by the CheckALSA macro if SDL_ALSA is false. This commit moves this warning message in the CheckALSA macro to being printed if ALSA_FOUND is false. However, I don't see an explicit warning message like this for the other macros that search for development libraries, so I wonder if the message shouldn't just be removed entirely. It seems redundant with the "Could NOT find ALSA ..." message generated by cmake. Before this commit: $ cmake -B build -DSDL_ALSA=OFF [...] CMake Warning at cmake/sdlchecks.cmake:125 (message): Unable to find the alsa development library Call Stack (most recent call first): CMakeLists.txt:1530 (CheckALSA) [...] -- Options: -- SDL_ALSA (Wanted: OFF): OFF [...] $ cmake -B build -DSDL_ALSA=ON [...] -- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR) [...] -- Options: -- SDL_ALSA (Wanted: ON): OFF [...] After this commit: $ cmake -B build -DSDL_ALSA=OFF [...] -- Options: -- SDL_ALSA (Wanted: OFF): OFF [...] $ cmake -B build -DSDL_ALSA=ON [...] -- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR) CMake Warning at cmake/sdlchecks.cmake:123 (message): Unable to find the alsa development library Call Stack (most recent call first): CMakeLists.txt:1530 (CheckALSA) [...] -- Options: -- SDL_ALSA (Wanted: ON): OFF [...] All of the cmake invocations above were without the libasound2-dev package installed. |
||
---|---|---|
.github | ||
VisualC | ||
VisualC-GDK | ||
VisualC-WinRT | ||
Xcode | ||
android-project | ||
build-scripts | ||
cmake | ||
docs | ||
include | ||
mingw/pkg-support | ||
src | ||
test | ||
wayland-protocols | ||
.clang-format | ||
.clang-tidy | ||
.editorconfig | ||
.gitignore | ||
.wikiheaders-options | ||
Android.mk | ||
BUGS.txt | ||
CMakeLists.txt | ||
CREDITS.md | ||
INSTALL.md | ||
LICENSE.txt | ||
README-SDL.txt | ||
README.md | ||
WhatsNew.txt |
README.md
Simple DirectMedia Layer (SDL) Version 3.0
Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.
More extensive documentation is available in the docs directory, starting with README.md. If you are migrating to SDL 3.0 from SDL 2.0, the changes are extensively documented in README-migration.md.
Enjoy!
Sam Lantinga (slouken@libsdl.org)