]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: do not add libcurl.rc to the static libcurl library
authorViktor Szakats <commit@vsz.me>
Thu, 26 May 2022 15:54:47 +0000 (15:54 +0000)
committerViktor Szakats <commit@vsz.me>
Thu, 26 May 2022 15:54:47 +0000 (15:54 +0000)
Fixes: https://github.com/curl/curl/pull/8918#issuecomment-1138263855
Reviewed-By: Karlson2k@users.noreply.github.com
Closes #8923

lib/CMakeLists.txt

index 46973bf2b875b71bc0a098d3ea837b4fcaf29eba..8eb5d0caf27c5a1dd3ebca75b671b0fa4968deb8 100644 (file)
@@ -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()