Removed windows specific CMakeLists.txt for building curl, moved build logic to the link function

This commit is contained in:
Vladyslav Baranovskyi
2024-10-25 22:43:06 +03:00
parent f5d5940f98
commit 5bdfc849af
3 changed files with 42 additions and 67 deletions

View File

@@ -6,6 +6,9 @@ include(FetchContent)
if (NOT DEFINED CURL_REPO OR CURL_REPO STREQUAL "")
set(CURL_REPO https://github.com/curl/curl.git)
endif ()
if (NOT DEFINED CURL_GIT_TAG OR CURL_GIT_TAG STREQUAL "")
set(CURL_GIT_TAG curl-8_8_0)
endif ()
if (NOT DEFINED OPENSSL_REPO OR OPENSSL_REPO STREQUAL "")
set(OPENSSL_REPO https://github.com/openssl/openssl.git)
endif ()
@@ -29,8 +32,6 @@ else ()
set(OPENSSL_MAKE_COMMAND make)
endif ()
set(CURL_GIT_TAG curl-8_8_0)
function(InstallOpenSSL)
ExternalProject_Add(
OpenSSL