mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 22:47:49 +08:00
14 lines
506 B
Diff
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)
|