From: Brad King Date: Wed, 11 Jan 2012 13:15:49 +0000 (-0500) Subject: Cleanup after ZLIB_WINAPI check X-Git-Tag: v3.0.4~2^2~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=868abbdad978f0e276fe619f58a44cbffd97af5b;p=thirdparty%2Flibarchive.git Cleanup after ZLIB_WINAPI check Clear CMAKE_REQUIRED_(INCLUDES|LIBRARIES) so that the rest of the checks after this one do not try to link zlib. SVN-Revision: 4133 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a313ff08..070def7b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,6 +181,8 @@ IF(ZLIB_FOUND) CHECK_C_SOURCE_Runs( "#ifndef ZLIB_WINAPI\n#define ZLIB_WINAPI\n#endif\n#include \nint main() {uLong f = zlibCompileFlags(); return (f&(1U<<10))?0:-1; }" ZLIB_WINAPI) + SET(CMAKE_REQUIRED_INCLUDES) + SET(CMAKE_REQUIRED_LIBRARIES) ENDIF(WIN32 AND NOT CYGWIN) ENDIF(ZLIB_FOUND) MARK_AS_ADVANCED(CLEAR ZLIB_INCLUDE_DIR)