]> git.lizzy.rs Git - zlib.git/commitdiff
If using cmake with MSVC, add the source directory to the includes.
authorChristoph J. Thompson <cjsthompson@gmail.com>
Mon, 12 Mar 2012 16:31:58 +0000 (17:31 +0100)
committerMark Adler <madler@alumni.caltech.edu>
Tue, 13 Mar 2012 05:15:16 +0000 (22:15 -0700)
modified:   CMakeLists.txt

CMakeLists.txt

index 2ee2dbcb52f59843f634d275617bcde082eb08df..39530f28dda8a92d0cba7175419345fd2215d775 100644 (file)
@@ -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)