summaryrefslogtreecommitdiffstats
path: root/Modules/WriteBasicConfigVersionFile.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-01 21:03:47 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-08-01 21:03:47 (GMT)
commit02b1e4b96a10b77e40dbc7f5e5d23ccd61a2b08b (patch)
treecb8f914b04d4b9dcb91ab23db48e5e1d96949e17 /Modules/WriteBasicConfigVersionFile.cmake
parentd216a67e4a41d443d97f9e3b0470b21d1c822b3d (diff)
downloadCMake-02b1e4b96a10b77e40dbc7f5e5d23ccd61a2b08b.zip
CMake-02b1e4b96a10b77e40dbc7f5e5d23ccd61a2b08b.tar.gz
CMake-02b1e4b96a10b77e40dbc7f5e5d23ccd61a2b08b.tar.bz2
Add example to documentation
Alex
Diffstat (limited to 'Modules/WriteBasicConfigVersionFile.cmake')
-rw-r--r--Modules/WriteBasicConfigVersionFile.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/WriteBasicConfigVersionFile.cmake b/Modules/WriteBasicConfigVersionFile.cmake
index a6175c7..361eb60 100644
--- a/Modules/WriteBasicConfigVersionFile.cmake
+++ b/Modules/WriteBasicConfigVersionFile.cmake
@@ -12,6 +12,13 @@
# If you project has more elaborated version matching rules, you will need to write your
# own custom ConfigVersion.cmake file, instead of using this macro.
#
+# Example:
+# write_basic_config_version_file(${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake
+# VERSION 1.2.3
+# COMPATIBILITY SameMajorVersion )
+# install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake
+# DESTINATION lib/cmake/Foo )
+#
# Internally, this macro executes configure_file() on the input file
# Modules/BasicConfigVersion-AnyNewerVersion/SameMajorVersion.cmake.in to
# create the resulting version file.