summaryrefslogtreecommitdiffstats
path: root/data/ApiExtractorConfigVersion.cmake.in
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-09-09 15:36:20 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:09 -0300
commitd60308ead4a5df126176d034ebd728bc5be5cb3c (patch)
tree293f3cc93ab3d6b90b8c3887772b045e765433c2 /data/ApiExtractorConfigVersion.cmake.in
parent4c79cca936632da8fd6c9174babd4a9f72624f52 (diff)
Created cmake option 'ENABLE_VERSION_SUFFIX' to use version on generated files to allow multiples version installed simultaneous.sb-0.8.0
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'data/ApiExtractorConfigVersion.cmake.in')
-rw-r--r--data/ApiExtractorConfigVersion.cmake.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/ApiExtractorConfigVersion.cmake.in b/data/ApiExtractorConfigVersion.cmake.in
new file mode 100644
index 00000000..a9f7318f
--- /dev/null
+++ b/data/ApiExtractorConfigVersion.cmake.in
@@ -0,0 +1,9 @@
+set(PACKAGE_VERSION @apiextractor_VERSION@)
+if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @apiextractor_MAJOR_VERSION@)
+ if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @apiextractor_MINOR_VERSION@)
+ set(PACKAGE_VERSION_COMPATIBLE 1)
+ if("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @apiextractor_MICRO_VERSION@)
+ set(PACKAGE_VERSION_EXACT 1)
+ endif()
+ endif()
+endif()