run curl build as release
This commit is contained in:
4
3rdParty/curl/CMakeLists.txt
vendored
4
3rdParty/curl/CMakeLists.txt
vendored
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user