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

14 lines
503 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
2019-04-04 13:15:26 +08:00
index 1bae9a7..0303186 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2019-04-04 13:15:26 +08:00
@@ -53,7 +53,7 @@ option(WITH_WINDOWS_UTF8_FILENAMES "use UTF8 as characterset for opening files,
if (WITH_WINDOWS_UTF8_FILENAMES)
add_definitions(-DROCKSDB_WINDOWS_UTF8_FILENAMES)
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)