summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly
diff options
context:
space:
mode:
authorAntonio Perez Barrero <apbarrero@gmail.com>2016-03-01 08:15:19 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-07 17:56:25 (GMT)
commita7b09e7f43fda0a459145053653a614330bf1fe1 (patch)
tree831a82556410fba7bb5bf4c64435e0dcb1cef8bd /Tests/CMakeOnly
parent8256d021c8324779c7269658a094848ebeafb82e (diff)
downloadCMake-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 'Tests/CMakeOnly')
-rw-r--r--Tests/CMakeOnly/AllFindModules/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tests/CMakeOnly/AllFindModules/CMakeLists.txt b/Tests/CMakeOnly/AllFindModules/CMakeLists.txt
index 0aad161..26683b1 100644
--- a/Tests/CMakeOnly/AllFindModules/CMakeLists.txt
+++ b/Tests/CMakeOnly/AllFindModules/CMakeLists.txt
@@ -87,10 +87,9 @@ foreach(VTEST ALSA ARMADILLO BZIP2 CUPS CURL EXPAT FREETYPE GETTEXT GIT HG
endforeach()
foreach(VTEST BISON Boost CUDA DOXYGEN FLEX GIF GTK2
- HDF5 LibArchive OPENSCENEGRAPH RUBY SWIG)
+ HDF5 LibArchive OPENSCENEGRAPH RUBY SWIG Protobuf)
check_version_string(${VTEST} ${VTEST}_VERSION)
endforeach()
check_version_string(PYTHONINTERP PYTHON_VERSION_STRING)
-check_version_string(Protobuf PROTOBUF_VERSION)
check_version_string(SUBVERSION Subversion_VERSION_SVN)