Use CMAKE_MSVC_RUNTIME_LIBRARY property to use static runtime

This commit is contained in:
Serg Creevanose 2024-04-01 14:53:52 -07:00
parent 068d5ee1a3
commit aefcf5fcac

View File

@ -237,8 +237,10 @@ target_include_directories(leveldb
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
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$<$<CONFIG:Debug>:DebugDLL>
)
target_compile_definitions(leveldb
PRIVATE