[trunk] Fix compilation when zlib.h is in user specified directory.
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Sat, 17 Mar 2012 14:51:40 +0000 (14:51 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Sat, 17 Mar 2012 14:51:40 +0000 (14:51 +0000)
thirdparty/libtiff/CMakeLists.txt

index b6b22a493aa46f0f28f44593ce04b06ee23b1731..efc86141dac37ba04e0389f8895a61214bb12b35 100644 (file)
@@ -77,6 +77,9 @@ if(HAVE_JPEGLIB_H)
   set(JPEG_SUPPORT 1)
 endif()
 if(HAVE_ZLIB_H)
+  include_directories(
+    ${ZLIB_INCLUDE_DIR}
+    )
   set(ZIP_SUPPORT 1)
   set(PIXARLOG_SUPPORT 1) # require zlib
 endif()