summaryrefslogtreecommitdiffstats
path: root/data/ShibokenConfigVersion.cmake.in
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-09-09 18:20:09 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-09-10 11:46:57 -0300
commit76a9acb72693e670b141b2eb57f14cad1d1a1cef (patch)
tree6b4a881c67791b72864d351066e57d0ad2b79a92 /data/ShibokenConfigVersion.cmake.in
parent167f72f50ea327d2976c29dc526311dae7addf45 (diff)
downloadshiboken-76a9acb72693e670b141b2eb57f14cad1d1a1cef.tar.gz
shiboken-76a9acb72693e670b141b2eb57f14cad1d1a1cef.tar.xz
shiboken-76a9acb72693e670b141b2eb57f14cad1d1a1cef.zip
Created cmake option 'ENABLE_VERSION_SUFFIX' to use version on generated files to allow multiples version installed simultaneous.0.5.0
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'data/ShibokenConfigVersion.cmake.in')
-rw-r--r--data/ShibokenConfigVersion.cmake.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/ShibokenConfigVersion.cmake.in b/data/ShibokenConfigVersion.cmake.in
new file mode 100644
index 00000000..89d84fc1
--- /dev/null
+++ b/data/ShibokenConfigVersion.cmake.in
@@ -0,0 +1,9 @@
+set(PACKAGE_VERSION @shiboken_VERSION@)
+if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @shiboken_MAJOR_VERSION@)
+ if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @shiboken_MINOR_VERSION@)
+ set(PACKAGE_VERSION_COMPATIBLE 1)
+ if("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @shiboken_MICRO_VERSION@)
+ set(PACKAGE_VERSION_EXACT 1)
+ endif()
+ endif()
+endif()