We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2844642 + 0529acb commit 3bf84ebCopy full SHA for 3bf84eb
automate-vcpkg.cmake
@@ -81,14 +81,12 @@ if (WIN32)
81
endif()
82
83
84
-if(NOT DEFINED ENV{VCPKG_ROOT})
85
- if(WIN32)
86
- set(VCPKG_ROOT ${VCPKG_FALLBACK_ROOT})
+if(NOT DEFINED VCPKG_ROOT)
+ if(NOT DEFINED ENV{VCPKG_ROOT})
+ set(VCPKG_ROOT ${VCPKG_FALLBACK_ROOT})
87
else()
88
+ set(VCPKG_ROOT $ENV{VCPKG_ROOT})
89
90
-else()
91
- set(VCPKG_ROOT $ENV{VCPKG_ROOT})
92
93
94
# Installs a new copy of Vcpkg or updates an existing one
0 commit comments