-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sdl2] Fix could not find found library alsa #42964
[sdl2] Fix could not find found library alsa #42964
Conversation
|
||
set(SDL_ALSA @SDL_ALSA@) | ||
set(SDL_ALSA_SHARED @SDL_ALSA_SHARED@) | ||
-if(SDL_ALSA AND NOT SDL_ALSA_SHARED AND TARGET SDL2::SDL2-static) | ||
+if(SDL_ALSA) | ||
+ set(CMAKE_REQUIRE_FIND_PACKAGE_ALSA 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't make sense. If the user asks for alsa, and the dependency alsa is installed, then CMAKE_REQUIRE_FIND_PACKAGE_ALSA
doesn't cause an error, but it catches errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be reproduced by find_package(SDL2 CONFIG REQUIRED)
twice.
find_package(SDL2 CONFIG REQUIRED)
find_package(SDL2 CONFIG REQUIRED)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be reproduced with find_package(ALSA)
. Fix in #43008.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reproduced in #43009.
Wait fix in #42912 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid. Fix in #43008.
Fixed at fa643c3 |
Fix #42929, error with
Could NOT find ALSA (missing: ALSA_LIBRARY) (found version "1.2.13")
Remove
set(CMAKE_REQUIRE_FIND_PACKAGE_ALSA 1)
.Checklist
./vcpkg x-add-version --all
and committing the result.Test
The installation
vcpkg install sdl2[alsa] imgui[sdl2-binding,sdl2-renderer-binding]
tests pass with the following triplets: