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
You can specify your own conditions and use them in any `condition` field:
43
+
42
44
```toml
43
45
[conditions]
44
46
arch64 = "CMAKE_SIZEOF_VOID_P EQUALS 8"
45
47
arch32 = "CMAKE_SIZEOF_VOID_P EQUALS 4"
46
48
```
47
49
50
+
This will make the `arch64` and `arch32` conditions available with their respective CMake expressions. The following conditions are predefined (you can override them if you desire):
51
+
52
+
```toml
53
+
[conditions]
54
+
windows = "WIN32"
55
+
macos = "CMAKE_SYSTEM_NAME MATCHES \"Darwin\""
56
+
unix = "UNIX"
57
+
bsd = "CMAKE_SYSTEM_NAME MATCHES \"BSD\""
58
+
linux = "CMAKE_SYSTEM_NAME MATCHES \"Linux\""
59
+
gcc = "CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\" OR CMAKE_C_COMPILER_ID STREQUAL \"GNU\""
60
+
clang = "CMAKE_CXX_COMPILER_ID MATCHES \"Clang\" OR CMAKE_C_COMPILER_ID MATCHES \"Clang\""
The vcpkg `version` will automatically generate the `url` from the official repository. For a custom registry you can specify your own `url` (and omit the `version`).
88
+
The vcpkg `version` will automatically generate the `url` from the [official repository](https://github.com/microsoft/vcpkg/releases). For a custom registry you can specify your own `url` (and omit the `version`). You can browse available packages on [vcpkg.io](https://vcpkg.io/en/packages.html).
0 commit comments