openal-soft
openal-soft copied to clipboard
Searches for SDL* even when ALSOFT_BACKEND_SDL* is OFF
cmake searches for SDL (with find_package) even if ALSOFT_BACKEND_SDL2 is OFF:
https://github.com/kcat/openal-soft/blob/6790234a907e23f91f5d1eb870fe23c3b42d3496/CMakeLists.txt#L101-L102
I can counteract this by using -DCMAKE_DISABLE_FIND_PACKAGE_SDL2=ON but I don't think I should have to do that. For all the other backends, the corresponding find_package call is not made if the backend is disabled.
Commit 5c17dfd17afd4af54d6eff2dcc103115b40e5ab5 avoids searching for SDL2 when the backend is disabled. SDL3 still gets searched for since it's needed for a couple examples.