Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Apr 10, 2022
1 parent 3c598bd commit efc340e
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,19 @@ if(NOT DEACTIVATE_ZLIBNG)
set(HAVE_ZLIBNG TRUE)
endif()

if(HAVE_ZLIB_NG)
set(ZLIB_NG_DIR "zlib-ng-2.0.6") # update to the actual included version
add_definitions(-DZLIB_COMPAT)
set(ZLIB_COMPAT TRUE)
set(SKIP_INSTALL_ALL TRUE)
set(BUILD_SHARED_LIBS FALSE)
set(ZLIB_ENABLE_TESTS OFF)
add_subdirectory("internal-complibs/${ZLIB_NG_DIR}")

file(COPY
${CMAKE_CURRENT_BINARY_DIR}/internal-complibs/${ZLIB_NG_DIR}/zconf.h
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/internal-complibs/${ZLIB_NG_DIR}/)
if(HAVE_ZLIBNG)
set(ZLIBNG_DIR "zlib-ng-2.0.6") # update to the actual included version
add_definitions(-DZLIB_COMPAT)
set(ZLIB_COMPAT TRUE)
set(SKIP_INSTALL_ALL TRUE)
set(BUILD_SHARED_LIBS FALSE)
set(ZLIB_ENABLE_TESTS OFF)
add_subdirectory("internal-complibs/${ZLIBNG_DIR}")

file(COPY
${CMAKE_CURRENT_BINARY_DIR}/internal-complibs/${ZLIBNG_DIR}/zconf.h
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/internal-complibs/${ZLIBNG_DIR}/)
endif()
endif()

if(NOT DEACTIVATE_ZSTD)
Expand Down

0 comments on commit efc340e

Please sign in to comment.