vcpkg/ports/rocksdb/0003-use-find-package.patch

14 lines
506 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
2020-03-11 08:21:14 +08:00
index eebda35e9..cf48c7ad5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2020-03-11 08:21:14 +08:00
@@ -67,7 +67,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Windows")
else()
option(WITH_FOLLY_DISTRIBUTED_MUTEX "build with folly::DistributedMutex" OFF)
2019-04-04 13:15:26 +08:00
endif()
-if(MSVC)
+if(MSVC AND NOT VCPKG_TOOLCHAIN)
# Defaults currently different for GFLAGS.
# We will address find_package work a little later
option(WITH_GFLAGS "build with GFlags" OFF)