We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd770b commit d6fdafdCopy full SHA for d6fdafd
freetype.cmake
@@ -2,10 +2,14 @@ set(FREETYPE_DIR ${DAEMON_DIR}/libs/freetype)
2
set(FREETYPE_INCLUDE_DIRS ${FREETYPE_DIR}/include)
3
set(FREETYPE_LIBRARIES freetype)
4
5
-if (PREFER_EXTERNAL_LIBS AND NOT NACL)
6
- set(FREETYPE_INTERNAL_ZLIB OFF)
7
-else()
+if (NACL)
+ # Using Freetype's own zlib prevents the need for a zlib submodule when building the nexe cgame.
8
set(FREETYPE_INTERNAL_ZLIB ON)
+else()
9
+ # Even if we can build an engine with Freetype using its internal zlib, we better rely on the
10
+ # external zlib even if PREFER_EXTERNAL_LIBS is OFF, because then it will avoid zlib duplication
11
+ # and share the same zlib between Freetype and the libpng.
12
+ set(FREETYPE_INTERNAL_ZLIB OFF)
13
endif()
14
15
if (NOT FREETYPE_INTERNAL_ZLIB)
0 commit comments