From ace3aeb460ebfb292ed2e9e653a975920245a12f Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Mon, 12 Jul 2021 21:49:11 -0500 Subject: [PATCH] Qt doesn't like ZLIB::ZLIB target, revert to legacy target include/link method --- external/mapbox-gl-native.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/external/mapbox-gl-native.cmake b/external/mapbox-gl-native.cmake index a6239dca..7796350f 100644 --- a/external/mapbox-gl-native.cmake +++ b/external/mapbox-gl-native.cmake @@ -6,7 +6,8 @@ set(MBGL_WITH_QT ON) add_subdirectory(mapbox-gl-native) find_package(ZLIB) -target_link_libraries(mbgl-core PUBLIC ZLIB::ZLIB) +target_include_directories(mbgl-core PRIVATE ${ZLIB_INCLUDE_DIRS}) +target_link_libraries(mbgl-core INTERFACE ${ZLIB_LIBRARIES}) set_target_properties(mbgl-qt PROPERTIES EXCLUDE_FROM_ALL True) set_target_properties(mbgl-test-runner PROPERTIES EXCLUDE_FROM_ALL True)