Skip to content

Commit

Permalink
Don't add CURL::libcurl alias if it already exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Aug 1, 2023
1 parent b772d03 commit 3c93e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 3c93e75

Please sign in to comment.