diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2021-08-04 01:42:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-03 10:42:34 -0700 |
| commit | b7f99c3c4b32c0b31b73701e92bb42fbea0c83cb (patch) | |
| tree | 422b04540845543cf9666f3673b35c7d0043d1b2 /scripts | |
| parent | a863c84812089836a3c0f2f215ab3e2579fc8acf (diff) | |
| download | vcpkg-b7f99c3c4b32c0b31b73701e92bb42fbea0c83cb.tar.gz vcpkg-b7f99c3c4b32c0b31b73701e92bb42fbea0c83cb.zip | |
[vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245)
* Remove unused cmake options and MAYBE_UNUSED_VARIABLES values
* Update MAYBE_UNUSED_VARIABLES docs
* update version
* version stuff
* version stuff
* update docs
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/cmake/vcpkg_configure_cmake.cmake | 13 |
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. |
