summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-06-28 13:28:33 +0200
committerPatrick Steinhardt <ps@pks.im>2017-08-16 07:12:38 +0200
commit1f43a43dcef50e9ab77a0468045f334b3217e5b4 (patch)
tree5a7fc4a98698c33bf7b6bd52fef175bea8b0c9e6 /deps
parentb75145549704e7118f7802b42d1e72ac9ff69b6f (diff)
downloadlibgit2-1f43a43dcef50e9ab77a0468045f334b3217e5b4.tar.gz
cmake: move zlib build instructions into subdirectory
Extract code required to build the zlib library into its own CMakeLists.txt, which is included as required.
Diffstat (limited to 'deps')
-rw-r--r--deps/zlib/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/zlib/CMakeLists.txt b/deps/zlib/CMakeLists.txt
new file mode 100644
index 000000000..ca50d80c4
--- /dev/null
+++ b/deps/zlib/CMakeLists.txt
@@ -0,0 +1,4 @@
+ADD_DEFINITIONS(-DNO_VIZ -DSTDC -DNO_GZIP)
+FILE(GLOB SRC_ZLIB "*.c" "*.h")
+INCLUDE_DIRECTORIES(".")
+ADD_LIBRARY(zlib STATIC ${SRC_ZLIB})