static link libpthread on win32
This commit is contained in:
@@ -28,9 +28,15 @@ if (ENABLE_ASAN)
|
|||||||
message("asan is on. if have any problems, disable it.")
|
message("asan is on. if have any problems, disable it.")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
add_link_options(
|
||||||
|
-static
|
||||||
|
)
|
||||||
|
endif ()
|
||||||
|
|
||||||
# For CURL
|
# For CURL
|
||||||
set(BUILD_STATIC_LIBS ON)
|
set(BUILD_STATIC_LIBS ON)
|
||||||
if(WIN32)
|
if (WIN32)
|
||||||
set(CURL_USE_SCHANNEL ON)
|
set(CURL_USE_SCHANNEL ON)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user