You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
982 B
25 lines
982 B
|
|
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()
|
|
|
|
set (PACKAGE_VERSION 2.3.4.5)
|
|
|
|
if (PACKAGE_FIND_VERSION VERSION_LESS_EQUAL PACKAGE_VERSION)
|
|
set (PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
else()
|
|
set (PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
endif()
|