aboutsummaryrefslogtreecommitdiffstats
path: root/GeneratorRunnerConfigVersion.cmake.in
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-06-23 16:46:40 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-06-23 17:08:49 -0300
commit2e58a6d67c38ef627c1065fca61c3602a1eb49d0 (patch)
treed2894d40b0a23aebe793a8760a8e54a8bb2b30b2 /GeneratorRunnerConfigVersion.cmake.in
parenta6e5c09a32b7f5eff5dd35664bb4bf8fa55886ed (diff)
Fix cmake files used by other projects to detect Generator Runner.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'GeneratorRunnerConfigVersion.cmake.in')
-rw-r--r--GeneratorRunnerConfigVersion.cmake.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/GeneratorRunnerConfigVersion.cmake.in b/GeneratorRunnerConfigVersion.cmake.in
new file mode 100644
index 000000000..fe0e36e59
--- /dev/null
+++ b/GeneratorRunnerConfigVersion.cmake.in
@@ -0,0 +1,9 @@
+set(PACKAGE_VERSION @generator_VERSION@)
+if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @generator_MAJOR_VERSION@)
+ if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @generator_MINOR_VERSION@)
+ set(PACKAGE_VERSION_COMPATIBLE 1)
+ if("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @generator_MICRO_VERSION@)
+ set(PACKAGE_VERSION_EXACT 1)
+ endif()
+ endif()
+endif()