mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 18:49:00 +08:00
14 lines
513 B
Diff
14 lines
513 B
Diff
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)
|