From: Christoph J. Thompson Date: Mon, 12 Mar 2012 16:31:58 +0000 (+0100) Subject: If using cmake with MSVC, add the source directory to the includes. X-Git-Tag: v1.2.7~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39c7ed14ac67413ac481aa136d2606d94e24536e;p=thirdparty%2Fzlib-ng.git If using cmake with MSVC, add the source directory to the includes. modified: CMakeLists.txt --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ee2dbcb5..39530f28d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,7 @@ if(MSVC) set(CMAKE_DEBUG_POSTFIX "d") add_definitions(-D_CRT_SECURE_NO_DEPRECATE) add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE) + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) endif() if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)