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 /docs/maintainers/ports | |
| 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 'docs/maintainers/ports')
| -rw-r--r-- | docs/maintainers/ports/vcpkg-cmake/vcpkg_cmake_configure.md | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/maintainers/ports/vcpkg-cmake/vcpkg_cmake_configure.md b/docs/maintainers/ports/vcpkg-cmake/vcpkg_cmake_configure.md index 3745df080..6053b363c 100644 --- a/docs/maintainers/ports/vcpkg-cmake/vcpkg_cmake_configure.md +++ b/docs/maintainers/ports/vcpkg-cmake/vcpkg_cmake_configure.md @@ -19,7 +19,7 @@ vcpkg_cmake_configure( [OPTIONS_DEBUG <configure-setting>...] [MAYBE_UNUSED_VARIABLES - <variable-name>...] + <option-name>...] ) ``` @@ -61,7 +61,17 @@ If the library sets its own code page, pass the `NO_CHARSET_FLAG` option. This function makes certain that all options passed in are used by the underlying CMake build system. If there are options that might be unused, perhaps on certain platforms, pass those variable names to -`MAYBE_UNUSED_VARIABLES`. +`MAYBE_UNUSED_VARIABLES`. For example: +```cmake +vcpkg_cmake_configure( + ... + OPTIONS + -DBUILD_EXAMPLE=OFF + ... + MAYBE_UNUSED_VARIABLES + BUILD_EXAMPLE +) +``` `LOGFILE_BASE` is used to set the base of the logfile names; by default, this is `config`, and thus the logfiles end up being something like |
