summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmcurl')
-rw-r--r--Utilities/cmcurl/lib/CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/Utilities/cmcurl/lib/CMakeLists.txt b/Utilities/cmcurl/lib/CMakeLists.txt
index b2bcf09..3d5c3e3 100644
--- a/Utilities/cmcurl/lib/CMakeLists.txt
+++ b/Utilities/cmcurl/lib/CMakeLists.txt
@@ -13,7 +13,7 @@ list(APPEND HHEADERS
${CURL_BINARY_DIR}/include/curl/curlbuild.h
)
-if(MSVC)
+if(MSVC AND NOT CURL_STATICLIB)
list(APPEND CSOURCES libcurl.rc)
endif()
@@ -94,10 +94,6 @@ add_library(
${HHEADERS} ${CSOURCES}
)
-if(MSVC AND CURL_STATICLIB)
- set_target_properties(${LIB_NAME} PROPERTIES STATIC_LIBRARY_FLAGS ${CMAKE_EXE_LINKER_FLAGS})
-endif()
-
target_link_libraries(${LIB_NAME} ${CURL_LIBS})
if(WIN32)