-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Remove FindSDL2.cmake as SDL2 provides a sdl2-config.cmake since 2.0.4 #1530
Conversation
On debian we only have welcome to the wonders of cross-platform development. |
Let's see if I'm allowed to simply set both ... |
also build this locally as our CI builds without SDL on Ubuntu. |
May I ask why? |
To cover a wide range of build configurations. Building with SDL2 is done on my machine 😉 |
Since I don't have xenial either and my machine currently builds the debian image I added this test commit, can remove it later or while squashing on merge |
b5a7289
to
2f6d395
Compare
It fails with something about |
it runs |
54b7d2f
to
ab7ea25
Compare
and see if it's picked up automatically
ab7ea25
to
cc50687
Compare
👍 thanks |
* replace SDL2_INCLUDE_DIRS by imported target * create interface target for SDL2 if it doesn't exist
Apparently Debian messed up packaging SDL2 and has the headers in architecture dependent subfolders. This would not be an issue if ogre would use the sdl2-config.cmake provided by sdl2 since version 2.0.4 instead of guessing based on a list of possible locations
this is a test PR to see if your CI tells me if that also works on Windows and Mac
there is another option to do
or to add
/usr/include/${CMAKE_LIBRARY_ARCHITECTURE}/SDL2
to the list