Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Sep 29, 2017
1 parent 662f95b commit 82e93f1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions plugins/zlib-ng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ function(generate_cmakein input output)
file(WRITE "${output}" "${output_data}")
endfunction(generate_cmakein)

generate_cmakein("${CMAKE_CURRENT_SOURCE_DIR}/zlib-ng/zconf.h.in" "${CMAKE_CURRENT_BINARY_DIR}/zconf.h.cmakein")

configure_file( ${CMAKE_CURRENT_BINARY_DIR}/zconf.h.cmakein
${CMAKE_CURRENT_BINARY_DIR}/zconf.h @ONLY)

## End copied from zlib-ng

include (SquashPlugin)
Expand Down Expand Up @@ -42,3 +37,10 @@ squash_plugin(
EMBED_COMPILER_FLAGS
-Wno-shift-negative-value)
list (APPEND zlibng_sources ${libzlibng_sources})

if (ENABLE_ZLIB_NG)
generate_cmakein("${CMAKE_CURRENT_SOURCE_DIR}/zlib-ng/zconf.h.in" "${CMAKE_CURRENT_BINARY_DIR}/zconf.h.cmakein")

configure_file( ${CMAKE_CURRENT_BINARY_DIR}/zconf.h.cmakein
${CMAKE_CURRENT_BINARY_DIR}/zconf.h @ONLY)
endif ()

0 comments on commit 82e93f1

Please # to comment.