summaryrefslogtreecommitdiff
path: root/indra/cmake/ZLIB.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/ZLIB.cmake')
-rw-r--r--indra/cmake/ZLIB.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/cmake/ZLIB.cmake b/indra/cmake/ZLIB.cmake
new file mode 100644
index 0000000000..3740103a72
--- /dev/null
+++ b/indra/cmake/ZLIB.cmake
@@ -0,0 +1,15 @@
+# -*- cmake -*-
+
+set(ZLIB_FIND_QUIETLY ON)
+set(ZLIB_FIND_REQUIRED ON)
+
+if (STANDALONE)
+ include(FindZLIB)
+else (STANDALONE)
+ if (WINDOWS)
+ set(ZLIB_LIBRARIES zlib)
+ else (WINDOWS)
+ set(ZLIB_LIBRARIES z)
+ endif (WINDOWS)
+ set(ZLIB_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
+endif (STANDALONE)