From fe54af405c2beead8f6be23867c4a7e246bd881e Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 14 Nov 2016 07:31:54 +0100 Subject: [PATCH] Zlib is a public, not private include in Simgear. Should fix Windows compilation as reported by Alan Teeder on the list. --- simgear/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index 27fb6bac..072e1a65 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -112,11 +112,10 @@ target_include_directories(SimGearCore BEFORE PUBLIC $ $) -target_include_directories(SimGearCore PUBLIC ${Boost_INCLUDE_DIRS}) +target_include_directories(SimGearCore PUBLIC + ${Boost_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR}) target_include_directories(SimGearCore PRIVATE - ${EXPAT_INCLUDE_DIRS} - ${ZLIB_INCLUDE_DIR} - ${CURL_INCLUDE_DIRS}) + ${EXPAT_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS}) install(TARGETS SimGearCore EXPORT SimGearTargets