aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/ZLIB.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/ZLIB.cmake')
-rw-r--r--linden/indra/cmake/ZLIB.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/linden/indra/cmake/ZLIB.cmake b/linden/indra/cmake/ZLIB.cmake
new file mode 100644
index 0000000..80d4191
--- /dev/null
+++ b/linden/indra/cmake/ZLIB.cmake
@@ -0,0 +1,20 @@
1# -*- cmake -*-
2
3set(ZLIB_FIND_QUIETLY ON)
4set(ZLIB_FIND_REQUIRED ON)
5
6include(Prebuilt)
7
8if (STANDALONE)
9 include(FindZLIB)
10else (STANDALONE)
11 use_prebuilt_binary(zlib)
12 if (WINDOWS)
13 set(ZLIB_LIBRARIES zlib)
14 else (WINDOWS)
15 set(ZLIB_LIBRARIES z)
16 endif (WINDOWS)
17 if (WINDOWS OR LINUX)
18 set(ZLIB_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/zlib)
19 endif (WINDOWS OR LINUX)
20endif (STANDALONE)