vcpkg/ports/rocksdb/0003-use-find-package.patch
2020-03-10 17:21:14 -07:00

14 lines
506 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index eebda35e9..cf48c7ad5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
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)