summaryrefslogtreecommitdiffstats
path: root/Modules/CMakePackageConfigHelpers.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2014-01-06 20:20:44 (GMT)
committerBrad King <brad.king@kitware.com>2014-01-29 14:45:18 (GMT)
commit41d2f2c4cbf41bfe3ba7118c1fea0ed5e2f5f683 (patch)
treed8f0a2a12e5cc3997af7aab785c4934c0c7fadeb /Modules/CMakePackageConfigHelpers.cmake
parent7e142c5ac2be11097f7ff905b1606179803043d7 (diff)
downloadCMake-41d2f2c4cbf41bfe3ba7118c1fea0ed5e2f5f683.zip
CMake-41d2f2c4cbf41bfe3ba7118c1fea0ed5e2f5f683.tar.gz
CMake-41d2f2c4cbf41bfe3ba7118c1fea0ed5e2f5f683.tar.bz2
write_basic_package_version_file: use PROJECT_VERSION
In the write_basic_package_version_file(), the VERSION argument is now optional. If none is given, it falls back to ${PROJECT_VERSION}. Alex
Diffstat (limited to 'Modules/CMakePackageConfigHelpers.cmake')
-rw-r--r--Modules/CMakePackageConfigHelpers.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/CMakePackageConfigHelpers.cmake b/Modules/CMakePackageConfigHelpers.cmake
index f388fe0..473bbe5 100644
--- a/Modules/CMakePackageConfigHelpers.cmake
+++ b/Modules/CMakePackageConfigHelpers.cmake
@@ -99,7 +99,7 @@
#
# ::
#
-# WRITE_BASIC_PACKAGE_VERSION_FILE( filename VERSION major.minor.patch COMPATIBILITY (AnyNewerVersion|SameMajorVersion|ExactVersion) )
+# WRITE_BASIC_PACKAGE_VERSION_FILE( filename [VERSION major.minor.patch] COMPATIBILITY (AnyNewerVersion|SameMajorVersion|ExactVersion) )
#
#
#
@@ -112,6 +112,9 @@
# filename is the output filename, it should be in the build tree.
# major.minor.patch is the version number of the project to be installed
#
+# If no ``VERSION`` is given, the :variable:`PROJECT_VERSION` variable
+# is used. If this hasn't been set, it errors out.
+#
# The COMPATIBILITY mode AnyNewerVersion means that the installed
# package version will be considered compatible if it is newer or
# exactly the same as the requested version. This mode should be used