From e581f29b4286c4b7bcc373a366c21c9e6012b795 Mon Sep 17 00:00:00 2001 From: Rok Krhlikar Date: Fri, 28 Feb 2020 18:30:37 +0100 Subject: [PATCH] Move zlib include_directories before add_subdirectory (#159) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0fd3bba..7732075b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,8 +201,8 @@ if (ZLIB_FOUND) include_directories(${ZLIB_INCLUDE_DIRS}) target_link_libraries(ixwebsocket ${ZLIB_LIBRARIES}) else() - add_subdirectory(third_party/zlib) include_directories(third_party/zlib ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib) + add_subdirectory(third_party/zlib) target_link_libraries(ixwebsocket zlibstatic) endif()