mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 19:39:00 +08:00
[rocksdb]fix crt issues
This commit is contained in:
parent
618a18417c
commit
b8bfb0fd90
@ -28,6 +28,12 @@ else()
|
||||
set(BUILD_STATIC_LIBRARY OFF)
|
||||
endif()
|
||||
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
||||
set(WITH_MD_LIBRARY OFF)
|
||||
else()
|
||||
set(WITH_MD_LIBRARY ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
@ -40,6 +46,7 @@ vcpkg_configure_cmake(
|
||||
-DCURRENT_INSTALLED_DIR=${CURRENT_INSTALLED_DIR}
|
||||
-DBUILD_STATIC_LIBRARY=${BUILD_STATIC_LIBRARY}
|
||||
-DFAIL_ON_WARNINGS=OFF
|
||||
-DWITH_MD_LIBRARY=${WITH_MD_LIBRARY}
|
||||
OPTIONS_DEBUG
|
||||
-DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user