update build system
All checks were successful
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good

This commit is contained in:
2024-06-07 16:15:22 -05:00
parent 0f2c507c30
commit 5a30b15d1e
3 changed files with 8 additions and 5 deletions

View File

@ -11,6 +11,11 @@ if(PROJECT_ENABLE_CURL)
link_libraries(
CURL::libcurl
)
if (EXISTS ${PROJECT_DIST_DIR}/cacert.pem)
file(REMOVE ${PROJECT_DIST_DIR}/cacert.pem)
endif()
file(DOWNLOAD https://curl.haxx.se/ca/cacert.pem ${PROJECT_DIST_DIR}/cacert.pem)
elseif(NOT PROJECT_IS_MINGW OR CMAKE_HOST_WIN32)
ExternalProject_Add(curl_project
PREFIX external