diff --git a/CMakeLists.txt b/CMakeLists.txt index 65cd2ad..3f35ac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,7 +245,9 @@ if(PROXYRES_CURL AND (PROXYRES_EXECUTE OR PROXYRES_BUILD_CLI)) add_subdirectory(${curl_SOURCE_DIR} ${curl_BINARY_DIR} EXCLUDE_FROM_ALL) endif() - add_library(CURL::libcurl ALIAS libcurl) + if(NOT TARGET CURL::libcurl) + add_library(CURL::libcurl ALIAS libcurl) + endif() endif() endif()