opentomb / OpenTomb

An open-source Tomb Raider 1-5 engine remake
http://opentomb.github.io/
GNU Lesser General Public License v3.0
1.39k stars 145 forks source link

Fix inclusion of ZLIB with internal FreeType #537

Closed carlo-bramini closed 6 years ago

carlo-bramini commented 6 years ago

With reference to issue #504, I think that I have found the reason because the compilation of included FreeType failed when compiling with Visual Studio. The cause problem is the missing ZLIB_INCLUDE_DIRS inside target_include_directories() into extern/freetype/CMakeList.txt: if zlib.h is stored outside the includes of the toolchain, the build failed. Adding that thing has fixed my problem.