mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 20:57:51 +08:00
14 lines
435 B
Diff
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()
|