Hi people,
I've a project where I'm compiling zlib, libpng, and freetype as submodules, and I don't need to install these libraries (because they're being compiled as static libraries).
Anyway, zlib already use a cmake variable to avoid the installation (SKIP_INSTALL_ALL), for example:
https://github.com/madler/zlib/blob/master/CMakeLists.txt#L213So if we define this variable, we get a cmake error:
CMake Error: install(EXPORT "freetype-targets" ...) includes target "freetype" which requires target "zlibstatic" that is not in the export set.
So basically, we need a way to avoid calling install() commands from freetype's CMakeLists.txt file if SKIP_INSTALL_ALL/LIBRARIES/HEADERS are defined.
A patch is attached and possible commit here:
- David