-
Notifications
You must be signed in to change notification settings - Fork 26
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
MixerX returns cryptic error when SDL2 is already included in the library #76
Comments
Actually, I never used the |
As I remember, by default build it attempts to find the nearest available in-system SDL2, and it does downloading and installing of extra things if enable the separate AudioCodecs downloading 🤔 |
Seems that if SDL is being add_subdirectory'd into project, you can't install any target that depends into SDL, because SDL isn't itself scheduled to be installed by the project If you then add_subdirectory MixerX, it tries to install itself (which depends on SDL), which breaks |
If you want to use the MixerX in your CMake project, here is a working simple example: |
By the way, about MixerX: it uses the |
Seems that when FetchContent_Declare is defined for SDL2 FIRST, then MixerX was Declared, MixerX tries to install SDL2 no matter what.
Error is
I'd suggest check for SDL2_DISABLE_INSTALL is enabled or not to prevent double install.
The text was updated successfully, but these errors were encountered: