aboutsummaryrefslogtreecommitdiff
path: root/ports/rocksdb/use-find-package.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-13 01:52:00 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-13 01:52:00 -0700
commitc4457ea6a70d890ceae0b81a89d677eee28f7645 (patch)
treede11854200fa39ac1c84c0bc57c645e219003598 /ports/rocksdb/use-find-package.patch
parent990a5d71bf5b472fd1ba8c6bbf1ab2e152ce6454 (diff)
downloadvcpkg-c4457ea6a70d890ceae0b81a89d677eee28f7645.tar.gz
vcpkg-c4457ea6a70d890ceae0b81a89d677eee28f7645.zip
[matio][rocksdb] Fix build
Diffstat (limited to 'ports/rocksdb/use-find-package.patch')
-rw-r--r--ports/rocksdb/use-find-package.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/rocksdb/use-find-package.patch b/ports/rocksdb/use-find-package.patch
new file mode 100644
index 000000000..1a79c2286
--- /dev/null
+++ b/ports/rocksdb/use-find-package.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f3ac9ce..931e9f2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -45,7 +45,7 @@ option(WITH_JEMALLOC "build with JeMalloc" OFF)
+ option(WITH_SNAPPY "build with SNAPPY" OFF)
+ option(WITH_LZ4 "build with lz4" OFF)
+ option(WITH_ZLIB "build with zlib" OFF)
+-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)