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}
|
WORKING_DIRECTORY ${CURL_DEPS_INSTALL}
|
||||||
)
|
)
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${CMAKE_COMMAND} --build ${CURL_DEPS_INSTALL}
|
COMMAND ${CMAKE_COMMAND} --build ${CURL_DEPS_INSTALL} --config Release
|
||||||
RESULT_VARIABLE build_result
|
RESULT_VARIABLE build_result
|
||||||
)
|
)
|
||||||
if (NOT ${build_result} EQUAL "0")
|
if (NOT ${build_result} EQUAL "0")
|
||||||
@@ -38,7 +38,7 @@ function(LinkCurl TARGET)
|
|||||||
if (APPLE)
|
if (APPLE)
|
||||||
target_link_libraries(${TARGET} PUBLIC curl)
|
target_link_libraries(${TARGET} PUBLIC curl)
|
||||||
elseif (WIN32)
|
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 ()
|
else ()
|
||||||
target_link_libraries(${TARGET} PUBLIC crypto ssl curl)
|
target_link_libraries(${TARGET} PUBLIC crypto ssl curl)
|
||||||
endif ()
|
endif ()
|
||||||
|
|||||||
Reference in New Issue
Block a user