[rocksdb]fix crt issues

This commit is contained in:
atkawa7 2017-06-28 22:10:09 -07:00
parent 618a18417c
commit b8bfb0fd90

View File

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