From: Viktor Szakats Date: Thu, 26 May 2022 15:54:47 +0000 (+0000) Subject: cmake: do not add libcurl.rc to the static libcurl library X-Git-Tag: curl-7_84_0~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a77d14d22ae93aa15670522e453f78744649b8cc;p=thirdparty%2Fcurl.git cmake: do not add libcurl.rc to the static libcurl library Fixes: https://github.com/curl/curl/pull/8918#issuecomment-1138263855 Reviewed-By: Karlson2k@users.noreply.github.com Closes #8923 --- diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 46973bf2b8..8eb5d0caf2 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -40,7 +40,7 @@ list(APPEND HHEADERS ${CMAKE_CURRENT_BINARY_DIR}/curl_config.h ) -if(WIN32) +if(WIN32 AND NOT CURL_STATICLIB) list(APPEND CSOURCES libcurl.rc) endif()