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
Add FindSDL2 to simplify main CML #6686
Add FindSDL2 to simplify main CML #6686
Conversation
Also it looks like the instances of using SDL2::SDL2 would no longer need to be in |
working on it! thanks |
06f96a8
to
971c5a2
Compare
* the FindSDL2 module forwards to CONFIG mode first * if that fails (eg. no -version.cmake or config not even present) it uses pkg-config * exports SDL2::SDL2 and SDL2::SDL2main as targets * fix missing IMPORTED_LOCATION for other build types in Vorbisfile
971c5a2
to
f6aab3d
Compare
I, hopefully, made all the changes that remove that necessity! I'm actually trying this on a Windows machine I got my hands on, will report back. Please let me know if you want me to make some other changes. Thanks |
Barring any potential issue you find on your Windows machine, this looks good to me. |
Happy to report it builds nicely on the following combo:
|
In summary:
uses pkg-config
I've tried it in the following scenarios:
Haven't tried Windows, I was hoping the CI would help :D
Please let me know what you think about this one, I'd like to also make some Modules for SDL2_Image and Mixer
Have a good one!
EDIT: It also exports SDL2::SDL2main
EDIT2: I've also tested on windows (msvc/vcpkg/cmake/pkg-config-lite)