According to the content of CMakeLists.txt, if building with "-DZLIB_COMPAT=ON",
the value of WITH_GZFILEOP should be ON too. However, WITH_GZFILEOP is OFF
actually when you run "cmake .. -DZIB_COMPAT=ON", which will cause errors if you
use gzfile related functions.
This patch fixes the problem by adjusting the position of WITH_GZFILEOP
option.
Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
endif()
message(STATUS "Architecture: ${ARCH}")
+option (WITH_GZFILEOP "Compile with support for gzFile related functions" OFF)
option (ZLIB_COMPAT "Compile with zlib compatible API" OFF)
if (ZLIB_COMPAT)
add_definitions(-DZLIB_COMPAT)
set (SUFFIX "-ng")
endif (ZLIB_COMPAT)
-option (WITH_GZFILEOP "Compile with support for gzFile related functions" OFF)
if (WITH_GZFILEOP)
add_definitions(-DWITH_GZFILEOP)
endif (WITH_GZFILEOP)