run curl build as release

This commit is contained in:
Georg Hagen
2024-10-13 15:59:23 +02:00
parent 0fe8b0ea87
commit 42c94cd05d

View File

@@ -14,7 +14,7 @@ if (NOT ${CURL_FOUND})
WORKING_DIRECTORY ${CURL_DEPS_INSTALL}
)
execute_process(
COMMAND ${CMAKE_COMMAND} --build ${CURL_DEPS_INSTALL}
COMMAND ${CMAKE_COMMAND} --build ${CURL_DEPS_INSTALL} --config Release
RESULT_VARIABLE build_result
)
if (NOT ${build_result} EQUAL "0")
@@ -38,7 +38,7 @@ function(LinkCurl TARGET)
if (APPLE)
target_link_libraries(${TARGET} PUBLIC curl)
elseif (WIN32)
target_link_libraries(${TARGET} PUBLIC curl ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
target_link_libraries(${TARGET} PUBLIC ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
else ()
target_link_libraries(${TARGET} PUBLIC crypto ssl curl)
endif ()