From f1083e92e0f5a639d9b210c9171bcc7b0b15c215 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Mon, 1 Jan 2024 23:59:45 +0900 Subject: [PATCH] build: disable shared lib on msvc --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 577ab1a6e..9684c1573 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,8 @@ elseif(MSVC) if(MSVC_VERSION LESS 1900) add_compile_definitions(snprintf=_snprintf) endif() + + set(BUILD_SHARED_LIBS OFF) endif()