diff --git a/CMakeLists.txt b/CMakeLists.txt index b616cb6..a9ab8ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,11 +12,16 @@ option(KAI_ENABLE_LTO "Turn on compiler Link Time Optimizations" OFF) option(KAI_ENABLE_UNICODE "Enable unicode support for Windows builds" ON) option(KAI_ENABLE_HTTP2 "Enable HTTP/2 support in cURL" ON) +set( + AAA + libcurl_shared +) + set( CURL_LIBRARY_DEPENDENCIES bearssl ) - + set( INTERNAL_LIBRARY_TARGETS kai @@ -95,6 +100,7 @@ if (KAI_ENABLE_HTTP2) list(APPEND CURL_LIBRARY_DEPENDENCIES nghttp2) list(APPEND INTERNAL_LIBRARY_TARGETS nghttp2) + list(APPEND AAA nghttp2) endif() include_directories( @@ -827,7 +833,7 @@ elseif (UNIX) endif() foreach(property RUNTIME_OUTPUT_DIRECTORY LIBRARY_OUTPUT_DIRECTORY) - foreach(target ${CURL_LIBRARY_DEPENDENCIES}) + foreach(target ${AAA}) set_target_properties( ${target} PROPERTIES