You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up USE_VCPKG with a description, valid set of values, and a default. Moves options declarations, and the toolchain logic dependent upon them, up to the top of the file so that they occur before the project() declaration - this is required for correct toolchain usage.
@@ -13,31 +30,16 @@ if(NOT DEFINED USE_VCPKG OR USE_VCPKG)
13
30
# prevent endless recursion
14
31
unset(VCPKG_CHAINLOAD_TOOLCHAIN_FILE)
15
32
endif()
16
-
elseif(USE_VCPKG)
33
+
elseif(NOTUSE_VCPKGSTREQUAL"DEFAULT")
17
34
message(WARNING "USE_VCPKG=${USE_VCPKG} but ENV{VCPKG_ROOT} not set; will use system-provided libraries. Did you forget to set VCPKG_ROOT in your environment?")
18
35
endif()
19
36
endif()
20
37
21
-
# set default cmake build type to Debug (None Debug Release RelWithDebInfo MinSizeRel)
0 commit comments