blob: e9f607685706f43393b4d1b8c249338649f3934f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
if (NOT PACKAGE_FIND_VERSION_COMPLETE STREQUAL "1.2.3.4...5.6.7.8"
AND NOT PACKAGE_FIND_VERSION_COMPLETE STREQUAL "1.2.3.4...<5.6.7.8")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_COMPLETE: ${PACKAGE_FIND_VERSION_COMPLETE}")
endif()
if (NOT PACKAGE_FIND_VERSION VERSION_EQUAL "1.2.3.4")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION: ${PACKAGE_FIND_VERSION}")
endif()
if (NOT PACKAGE_FIND_VERSION_MAJOR VERSION_EQUAL "1")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MAJOR: ${PACKAGE_FIND_VERSION_MAJOR}")
endif()
if (NOT PACKAGE_FIND_VERSION_MINOR VERSION_EQUAL "2")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MINOR: ${PACKAGE_FIND_VERSION_MINOR}")
endif()
if (NOT PACKAGE_FIND_VERSION_PATCH VERSION_EQUAL "3")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_PATCH: ${PACKAGE_FIND_VERSION_PATCH}")
endif()
if (NOT PACKAGE_FIND_VERSION_TWEAK VERSION_EQUAL "4")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_TWEAK: ${PACKAGE_FIND_VERSION_TWEAK}")
endif()
if (NOT PACKAGE_FIND_VERSION_RANGE STREQUAL "1.2.3.4...5.6.7.8"
AND NOT PACKAGE_FIND_VERSION_RANGE STREQUAL "1.2.3.4...<5.6.7.8")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_RANGE: ${PACKAGE_FIND_VERSION_RANGE}")
endif()
if (NOT PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_RANGE_MIN: ${PACKAGE_FIND_VERSION_RANGE_MIN}")
endif()
if (PACKAGE_FIND_VERSION_RANGE MATCHES "<[0-9.]+$")
if (NOT PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_RANGE_MAX: ${PACKAGE_FIND_VERSION_RANGE_MAX}")
endif()
else()
if (NOT PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_RANGE_MAX: ${PACKAGE_FIND_VERSION_RANGE_MAX}")
endif()
endif()
if (NOT PACKAGE_FIND_VERSION_MIN VERSION_EQUAL "1.2.3.4")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MIN: ${PACKAGE_FIND_VERSION_MIN}")
endif()
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR VERSION_EQUAL "1")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MIN_MAJOR: ${PACKAGE_FIND_VERSION_MIN_MAJOR}")
endif()
if (NOT PACKAGE_FIND_VERSION_MIN_MINOR VERSION_EQUAL "2")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MIN_MINOR: ${PACKAGE_FIND_VERSION_MIN_MINOR}")
endif()
if (NOT PACKAGE_FIND_VERSION_MIN_PATCH VERSION_EQUAL "3")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MIN_PATCH: ${PACKAGE_FIND_VERSION_MIN_PATCH}")
endif()
if (NOT PACKAGE_FIND_VERSION_MIN_TWEAK VERSION_EQUAL "4")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MIN_TWEAK: ${PACKAGE_FIND_VERSION_MIN_TWEAK}")
endif()
if (NOT PACKAGE_FIND_VERSION_MAX VERSION_EQUAL "5.6.7.8")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MAX: ${PACKAGE_FIND_VERSION_MAX}")
endif()
if (NOT PACKAGE_FIND_VERSION_MAX_MAJOR VERSION_EQUAL "5")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MAX_MAJOR: ${PACKAGE_FIND_VERSION_MAX_MAJOR}")
endif()
if (NOT PACKAGE_FIND_VERSION_MAX_MINOR VERSION_EQUAL "6")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MAX_MINOR: ${PACKAGE_FIND_VERSION_MAX_MINOR}")
endif()
if (NOT PACKAGE_FIND_VERSION_MAX_PATCH VERSION_EQUAL "7")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MAXPATCH: ${PACKAGE_FIND_VERSION_MAX_PATCH}")
endif()
if (NOT PACKAGE_FIND_VERSION_MAX_TWEAK VERSION_EQUAL "8")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_MAX_TWEAK: ${PACKAGE_FIND_VERSION_MAX_TWEAK}")
endif()
set (PACKAGE_VERSION 2.3.4.5)
set (PACKAGE_VERSION_COMPATIBLE TRUE)
|