Skip to content

Commit

Permalink
pkgconfig file: propagate WITH_GZFILEOP
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort authored and Dead2 committed Nov 7, 2023
1 parent 8770d93 commit 0560a3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,9 @@ else()
endif()

set(ZLIB_PC ${CMAKE_CURRENT_BINARY_DIR}/zlib${SUFFIX}.pc)
if(WITH_GZFILEOP)
set(PKG_CONFIG_CFLAGS "-DWITH_GZFILEOP")
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zlib.pc.cmakein
${ZLIB_PC} @ONLY)
configure_file(${CMAKE_CURRENT_BINARY_DIR}/zconf${SUFFIX}.h.cmakein
Expand Down
2 changes: 1 addition & 1 deletion zlib.pc.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Version: @ZLIB_FULL_VERSION@

Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz@SUFFIX@
Cflags: -I${includedir}
Cflags: -I${includedir} @PKG_CONFIG_CFLAGS@

0 comments on commit 0560a3a

Please sign in to comment.