-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Update the SDL2 CMake modules #190
Conversation
Needs more testing -> draft for now. |
d0da3e5
to
b37b53b
Compare
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #190 +/- ##
=======================================
Coverage 94.78% 94.78%
=======================================
Files 81 81
Lines 2875 2875
=======================================
Hits 2725 2725
Misses 150 150 |
It seems the build passed, what kind of further testing would you like to have? |
SDL2_image is not used anywhere, so drop this unused module.
SDL2 has been providing CMake config files for many years; hence, there is no need to use an own FindSDL2.cmake module for find_package(). This needs to update the variables used for SDL2 to the ones provided by the SDL2 CMake config files: - SDL2_INCLUDE_DIR -> SDL2_INCLUDE_DIRS - SDL2_LIBRARY -> SDL2_LIBRARIES
b37b53b
to
1a823f7
Compare
It looks like this module originated from CMake, which uses a 3-clause BSD license; since the Copyright.txt file is not shipped, and the text even mention to replace the short text with the full license when using it outside of CMake, then place the complete license text.
1a823f7
to
6895601
Compare
I was not sure yet about the approach to do for Hence, it should be fine to review now, thanks! |
Thank you!! |
FindSDL2.cmake
, since SDL2 ships config files for CMake alreadyFindSDL2_image.cmake
, as SDL2_image is not usedFindSDL2_ttf.cmake