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" AND NOT PACKAGE_FIND_VERSION_COMPLETE STREQUAL "1.02.03.04...<5.06.07.08") 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" AND NOT PACKAGE_FIND_VERSION_RANGE STREQUAL "1.02.03.04...<5.06.07.08") 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)