Update curl linking
This commit is contained in:
1
3rdParty/curl/CMakeLists.txt
vendored
1
3rdParty/curl/CMakeLists.txt
vendored
@@ -45,4 +45,5 @@ function(LinkCurl TARGET)
|
|||||||
target_include_directories(${TARGET} PUBLIC ${CURL_INCLUDE_DIR})
|
target_include_directories(${TARGET} PUBLIC ${CURL_INCLUDE_DIR})
|
||||||
target_link_libraries(${TARGET} PUBLIC CURL::libcurl)
|
target_link_libraries(${TARGET} PUBLIC CURL::libcurl)
|
||||||
endif ()
|
endif ()
|
||||||
|
target_compile_definitions(${TARGET} PRIVATE HAS_CURL)
|
||||||
endfunction()
|
endfunction()
|
||||||
@@ -13,7 +13,6 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#if __has_include("curl/curl.h")
|
#if __has_include("curl/curl.h")
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#define HAS_CURL
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace OpenVulkano
|
namespace OpenVulkano
|
||||||
|
|||||||
Reference in New Issue
Block a user