From: K. R. Walker Date: Mon, 3 Nov 2014 18:31:24 +0000 (-0700) Subject: cmake: fix ZLIB_INCLUDE_DIRS use X-Git-Tag: curl-7_39_0~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dda59c5db5803f43b8a1630223416b6bfe141a14;p=thirdparty%2Fcurl.git cmake: fix ZLIB_INCLUDE_DIRS use CMake 2.8's FindZLIB.cmake documents ZLIB_INCLUDE_DIRS, see http://www.cmake.org/cmake/help/v2.8.0/cmake.html#module:FindZLIB Bug: https://github.com/bagder/curl/pull/123 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cbf6c0e4cf..45f46ec5e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -411,7 +411,7 @@ if(CURL_ZLIB) set(HAVE_ZLIB ON) set(HAVE_LIBZ ON) list(APPEND CURL_LIBS ${ZLIB_LIBRARIES}) - include_directories(${ZLIB_INCLUDE_DIR}) + include_directories(${ZLIB_INCLUDE_DIRS}) endif() endif()