From f135dcd7b4b894c25c077558f5076c495a5af351 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Sun, 13 Oct 2024 13:54:52 +0200 Subject: [PATCH] Update curl linking --- 3rdParty/curl/CMakeLists.txt | 1 + openVulkanoCpp/Host/WebResourceLoader.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdParty/curl/CMakeLists.txt b/3rdParty/curl/CMakeLists.txt index bdf9d1b..78fc7ae 100644 --- a/3rdParty/curl/CMakeLists.txt +++ b/3rdParty/curl/CMakeLists.txt @@ -45,4 +45,5 @@ function(LinkCurl TARGET) target_include_directories(${TARGET} PUBLIC ${CURL_INCLUDE_DIR}) target_link_libraries(${TARGET} PUBLIC CURL::libcurl) endif () + target_compile_definitions(${TARGET} PRIVATE HAS_CURL) endfunction() \ No newline at end of file diff --git a/openVulkanoCpp/Host/WebResourceLoader.cpp b/openVulkanoCpp/Host/WebResourceLoader.cpp index 419f87e..10ee494 100644 --- a/openVulkanoCpp/Host/WebResourceLoader.cpp +++ b/openVulkanoCpp/Host/WebResourceLoader.cpp @@ -13,7 +13,6 @@ #include #if __has_include("curl/curl.h") #include -#define HAS_CURL #endif namespace OpenVulkano