static link libpthread on win32

This commit is contained in:
2024-09-09 07:51:20 +08:00
parent 9353d3dccc
commit be611c26c8

View File

@@ -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 ()