diff options
author | Antonio Perez Barrero <apbarrero@gmail.com> | 2016-03-01 08:15:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-07 17:56:25 (GMT) |
commit | a7b09e7f43fda0a459145053653a614330bf1fe1 (patch) | |
tree | 831a82556410fba7bb5bf4c64435e0dcb1cef8bd /Help | |
parent | 8256d021c8324779c7269658a094848ebeafb82e (diff) | |
download | CMake-a7b09e7f43fda0a459145053653a614330bf1fe1.zip CMake-a7b09e7f43fda0a459145053653a614330bf1fe1.tar.gz CMake-a7b09e7f43fda0a459145053653a614330bf1fe1.tar.bz2 |
FindProtobuf: Rename variables to match case of module name
Use recommended case for variable names. i.e. matching name of the
module as passed to `find_package`.
For backwards compatibility, the upper case versions of both input and
output variables are used and defined when appropriate. Skip this for
the _FOUND variable because FPHSA already does it. Skip this for the
_VERSION variable because that was recently added and never available
with the old name in a release of CMake.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/release/dev/FindProtobuf-variable-case.rst | 7 | ||||
-rw-r--r-- | Help/release/dev/FindProtobuf-version.rst | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Help/release/dev/FindProtobuf-variable-case.rst b/Help/release/dev/FindProtobuf-variable-case.rst new file mode 100644 index 0000000..0df00e7 --- /dev/null +++ b/Help/release/dev/FindProtobuf-variable-case.rst @@ -0,0 +1,7 @@ +FindProtobuf-variable-case +-------------------------- + +* The :module:`FindProtobuf` module input and output variables were all renamed + from ``PROTOBUF_`` to ``Protobuf_`` for consistency with other find modules. + Input variables of the old case will be honored if provided, and output + variables of the old case are always provided. diff --git a/Help/release/dev/FindProtobuf-version.rst b/Help/release/dev/FindProtobuf-version.rst index 2bfd9f4..40c2ff5 100644 --- a/Help/release/dev/FindProtobuf-version.rst +++ b/Help/release/dev/FindProtobuf-version.rst @@ -1,6 +1,6 @@ FindProtobuf-version -------------------- -* The :module:`FindProtobuf` module learned to provide a ``PROTOBUF_VERSION`` +* The :module:`FindProtobuf` module learned to provide a ``Protobuf_VERSION`` variable and check the version number requested in a :command:`find_package` call. |