From 973b29980dd260abd3fdd0ada7228332ebe11685 Mon Sep 17 00:00:00 2001 From: Marianne Gagnon Date: Mon, 23 Jul 2018 19:58:15 -0400 Subject: [PATCH] Fix #3347 --- lib/irrlicht/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/irrlicht/CMakeLists.txt b/lib/irrlicht/CMakeLists.txt index 2dd3d80a5..419caf9a6 100644 --- a/lib/irrlicht/CMakeLists.txt +++ b/lib/irrlicht/CMakeLists.txt @@ -8,9 +8,12 @@ if(NOT SERVER_ONLY) "${PNG_INCLUDE_DIRS}" "${ZLIB_INCLUDE_DIR}") + if(MSVC) + include_directories("${CMAKE_CURRENT_BINARY_DIR}/../zlib/") # For zconf.h on WIN32 + endif() + if(MSVC OR APPLE) - include_directories("${CMAKE_CURRENT_BINARY_DIR}/../zlib/" # For zconf.h on WIN32 - "${CMAKE_CURRENT_BINARY_DIR}/../libpng/") + include_directories("${CMAKE_CURRENT_BINARY_DIR}/../libpng/") endif() if(NOT USE_GLES2) @@ -59,7 +62,7 @@ if(NOT SERVER_ONLY) endif() else() include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/") - if(MSVC OR APPLE) + if(MSVC) include_directories("${CMAKE_CURRENT_BINARY_DIR}/../zlib/") else() find_package(ZLIB REQUIRED)