Tue 12 Apr 2016 09:25:11 AM UTC, comment #6:
This `BEFORE' is essential, as far as I can see, so that the configured header files are used instead of the default ones.
I strongly recommend not peeking with a stick into the dark by wildly guessing a solution using cut and paste but to find out why `FindPNG.cmake' and `FindZLIB.cmake' don't work as expected for you. AFAIK, they should work on Windows also. So the next step would be to look at cmake's and the compiler's debugging output, checking the computed paths and command line options, etc., etc.
BTW, have you tried
cmake ... -DWITH_ZLIB=OFF -DWITH_PNG=OFF ...
to disable those two libraries?
There certainly might be bugs in FreeType's `CMakeLists.txt' file, and it would be great to find a workable solution.
You are free to set up a FreeType mirror on github – I won't do it, since I don't see a benefit. In particular, people would probably start to report FreeType issues on github, meaning that I have to take care of two bug trackers, which is both confusing and more work.
|