aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_configure_cmake.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_configure_cmake.cmake b/scripts/cmake/vcpkg_configure_cmake.cmake
index 56bf9bd57..0377ae5dd 100644
--- a/scripts/cmake/vcpkg_configure_cmake.cmake
+++ b/scripts/cmake/vcpkg_configure_cmake.cmake
@@ -15,7 +15,7 @@ vcpkg_configure_cmake(
[OPTIONS <-DUSE_THIS_IN_ALL_BUILDS=1>...]
[OPTIONS_RELEASE <-DOPTIMIZE=1>...]
[OPTIONS_DEBUG <-DDEBUGGABLE=1>...]
- [MAYBE_UNUSED_VARIABLES <option-name>...]
+ [MAYBE_UNUSED_VARIABLES <OPTION_NAME>...]
)
```
@@ -56,6 +56,17 @@ Additional options passed to CMake during the Debug configuration. These are in
### MAYBE_UNUSED_VARIABLES
Any CMake variables which are explicitly passed in, but which may not be used on all platforms.
+For example:
+```cmake
+vcpkg_cmake_configure(
+ ...
+ OPTIONS
+ -DBUILD_EXAMPLE=OFF
+ ...
+ MAYBE_UNUSED_VARIABLES
+ BUILD_EXAMPLE
+)
+```
### LOGNAME
Name of the log to write the output of the configure call to.