From aefcf5fcace3ec53d2b4005c8615e6818a05333d Mon Sep 17 00:00:00 2001 From: Serg Creevanose Date: Mon, 1 Apr 2024 14:53:52 -0700 Subject: [PATCH] Use CMAKE_MSVC_RUNTIME_LIBRARY property to use static runtime --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fda9e01bbb..415fb31574 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,8 +237,10 @@ target_include_directories(leveldb $ ) -set_target_properties(leveldb - PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) +set_target_properties(leveldb PROPERTIES + VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} + CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$:DebugDLL> +) target_compile_definitions(leveldb PRIVATE