JKGDevs / JediKnightGalaxies

Jedi Knight Galaxies (JKG) is a multiplayer shooter with role playing elements, played out in the Star Wars universe. The project is a full conversion game modification for Jedi Knight: Jedi Academy.
https://www.jkgalaxies.net/
GNU General Public License v2.0
34 stars 12 forks source link

Fix Travis CI macOS build #312

Closed xycaleth closed 4 years ago

xycaleth commented 4 years ago

For some reason on the Travis CI macOS builds, PNG_INCLUDE_DIRS is empty even when it should be identical to PNG_INCLUDE_DIR. As a result compilation fails since png.h cannot be found.

This PR adds PNG_INCLUDE_DIR to the include directory which does have the include path for png.h. Since PNG_INCLUDE_DIR is marked for deprecation and may stop working, we continue to use PNG_INCLUDE_DIRS as well since this is documented as the correct variable to use for include directories.