From c8d311f6f1b9ede6f66d510012da8002ef07a895 Mon Sep 17 00:00:00 2001 From: Robert Campion Date: Thu, 16 Jan 2020 18:16:58 -0500 Subject: [PATCH] fixes #534 (#535) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d476e42..f30c473 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,7 +123,8 @@ if( BUILD_TZ_LIB ) endif( ) if( NOT USE_SYSTEM_TZ_DB AND NOT MANUAL_TZ_DB ) find_package( CURL REQUIRED ) - target_link_libraries( tz PRIVATE CURL::libcurl ) + target_include_directories( tz SYSTEM PRIVATE ${CURL_INCLUDE_DIRS} ) + target_link_libraries( tz PRIVATE ${CURL_LIBRARIES} ) endif( ) endif( )