forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zlib-ng] add flags in pkgconfig (microsoft#34903)
- Loading branch information
1 parent
909a25e
commit 004e2a6
Showing
5 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index a645ad6e..fbc2bdba 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -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 | ||
diff --git a/zlib.pc.cmakein b/zlib.pc.cmakein | ||
index 3d440ce6..df8bf9f0 100644 | ||
--- a/zlib.pc.cmakein | ||
+++ b/zlib.pc.cmakein | ||
@@ -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@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters