diff --git a/CMakeLists.txt b/CMakeLists.txt index d0567f8..b286c19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,9 +28,15 @@ if (ENABLE_ASAN) message("asan is on. if have any problems, disable it.") endif () +if (WIN32) + add_link_options( + -static + ) +endif () + # For CURL set(BUILD_STATIC_LIBS ON) -if(WIN32) +if (WIN32) set(CURL_USE_SCHANNEL ON) endif ()