summaryrefslogtreecommitdiff
path: root/package/libssh/patches/patch-cmake_Modules_FindZLIB_cmake
blob: e7fcdfd2d724d074d6ea1dbdb4f2612cdd2525f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- libssh-0.6.3.orig/cmake/Modules/FindZLIB.cmake	2013-12-21 18:37:12.000000000 +0100
+++ libssh-0.6.3/cmake/Modules/FindZLIB.cmake	2014-03-14 09:07:03.296701809 +0100
@@ -61,11 +61,11 @@ else (ZLIB_LIBRARIES AND ZLIB_INCLUDE_DI
         NAMES
             zlib.h
         PATHS
+            ${ZLIB_ROOT_DIR}/include
             /usr/local/include
             /opt/local/include
             /sw/include
             /usr/lib/sfw/include
-            ${ZLIB_ROOT_DIR}/include
     )
     mark_as_advanced(ZLIB_INCLUDE_DIR)
 
@@ -99,12 +99,12 @@ else (ZLIB_LIBRARIES AND ZLIB_INCLUDE_DI
             zlib1
             zlibd
         PATHS
+            ${ZLIB_ROOT_DIR}/lib
             /usr/local/lib
             /opt/local/lib
             /sw/lib
             /usr/sfw/lib/64
             /usr/sfw/lib
-            ${ZLIB_ROOT_DIR}/lib
     )
     mark_as_advanced(ZLIB_LIBRARY)