BASISConfigVersion.cmake
Go to the documentation of this file.
1 ##############################################################################
2 # @file BASISConfigVersion.cmake
3 # @brief Package configuration version file.
4 #
5 # @note The BASISConfigVersion.cmake file is automatically
6 # generated by BASIS from the template file ConfigVersion.cmake.in
7 # which is part of BASIS.
8 #
9 # This file supports the usage of the package by other projects. It is loaded
10 # by the find_package() CMake command used by other projects to find this
11 # package in order to verify that the version of the package found is
12 # compatible with the version requested.
13 #
14 # @par Input variables
15 # <table border="0">
16 # <tr>
17 # @tp @b PACKAGE_FIND_NAME @endtp
18 # <td>The package name, i.e., "BASIS".</td>
19 # </tr>
20 # <tr>
21 # @tp @b BASIS_FIND_VERSION @endtp
22 # <td>Full requested version string.</td>
23 # </tr>
24 # <tr>
25 # @tp @b BASIS_FIND_VERSION_MAJOR @endtp
26 # <td>Major version if requested, else 0.</td>
27 # </tr>
28 # <tr>
29 # @tp @b BASIS_FIND_VERSION_MINOR @endtp
30 # <td>Minor version if requested, else 0.</td>
31 # </tr>
32 # <tr>
33 # @tp @b BASIS_FIND_VERSION_PATCH @endtp
34 # <td>Patch version if requested, else 0.</td>
35 # </tr>
36 # <tr>
37 # @tp @b BASIS_FIND_VERSION_TWEAK @endtp
38 # <td>Tweak version if requested, else 0.</td>
39 # </tr>
40 # <tr>
41 # @tp @b BASIS_FIND_VERSION_COUNT @endtp
42 # <td>Number of version components, 0 to 4.</td>
43 # </tr>
44 # </table>
45 #
46 # @par Output variables
47 # <table border="0">
48 # <tr>
49 # @tp @b PACKAGE_VERSION @endtp
50 # <td>Full provided version string.</td>
51 # </tr>
52 # <tr>
53 # @tp @b PACKAGE_VERSION_EXACT @endtp
54 # <td>True if version is exact match.</td>
55 # </tr>
56 # <tr>
57 # @tp @b PACKAGE_VERSION_COMPATIBLE @endtp
58 # <td>True if version is compatible.</td>
59 # </tr>
60 # <tr>
61 # @tp @b PACKAGE_VERSION_UNSUITABLE @endtp
62 # <td>True if unsuitable as any version.</td>
63 # </tr>
64 # </table>
65 #
66 # @sa http://www.cmake.org/Wiki/CMake_2.6_Notes
67 #
68 # @ingroup BasisConfig
69 ##############################################################################
70 
71 # ============================================================================
72 # version
73 # ============================================================================
74 
75 ## @brief Version of the found package.
76 set (PACKAGE_VERSION "3.3.1")
77 
78 # ============================================================================
79 # check compatibility
80 # ============================================================================
81 
82 # Perform compatibility check here using the input CMake variables.
83 # See example in http://www.cmake.org/Wiki/CMake_2.6_Notes.
84 
85 ## @brief Whether this package version is compatible with the requested version.
87 ## @brief Whether this package version is unsuitable with the requested version.
89 
90 ## @brief Whether this package version is the requested version.
91 if (${PACKAGE_FIND_VERSION_MAJOR} EQUAL 3)
92  if (${PACKAGE_FIND_VERSION_MINOR} EQUAL 3)
94  endif ()
95 endif ()
cmake PACKAGE_VERSION
Version of the found package.
cmake PACKAGE_VERSION_UNSUITABLE
Whether this package version is unsuitable with the requested version.
function is(in result, in expected, in name)
Test whether a given result is equal to the expected result.
cmake PACKAGE_VERSION_EXACT
Whether this package version is the requested version.
cmake PACKAGE_VERSION_COMPATIBLE
Whether this package version is compatible with the requested version.