vcpkg/ports/rocksdb/0003-use-find-package.patch
2020-10-12 17:13:33 -07:00

14 lines
435 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f9c8f3346..59747a684 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,7 +91,7 @@ include(CMakeDependentOption)
CMAKE_DEPENDENT_OPTION(WITH_GFLAGS "build with GFlags" ON
"NOT MSVC;NOT MINGW" OFF)
-if(MSVC)
+if(MSVC AND NOT VCPKG_TOOLCHAIN)
option(WITH_XPRESS "build with windows built in compression" OFF)
include(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty.inc)
else()