FindVersionTestC.cmake 1.3 KB

123456789101112131415161718
  1. IF(NOT "${VersionTestC_FIND_VERSION}" STREQUAL "1.2.3")
  2. MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION=${VersionTestC_FIND_VERSION} is not 1.2.3")
  3. ENDIF(NOT "${VersionTestC_FIND_VERSION}" STREQUAL "1.2.3")
  4. IF(NOT "${VersionTestC_FIND_VERSION_MAJOR}" STREQUAL "1")
  5. MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION_MAJOR=${VersionTestC_FIND_VERSION_MAJOR} is not 1")
  6. ENDIF(NOT "${VersionTestC_FIND_VERSION_MAJOR}" STREQUAL "1")
  7. IF(NOT "${VersionTestC_FIND_VERSION_MINOR}" STREQUAL "2")
  8. MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION_MINOR=${VersionTestC_FIND_VERSION_MINOR} is not 2")
  9. ENDIF(NOT "${VersionTestC_FIND_VERSION_MINOR}" STREQUAL "2")
  10. IF(NOT "${VersionTestC_FIND_VERSION_PATCH}" STREQUAL "3")
  11. MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION_PATCH=${VersionTestC_FIND_VERSION_PATCH} is not 3")
  12. ENDIF(NOT "${VersionTestC_FIND_VERSION_PATCH}" STREQUAL "3")
  13. IF(NOT "${VersionTestC_FIND_VERSION_TWEAK}" STREQUAL "0")
  14. MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION_TWEAK=${VersionTestC_FIND_VERSION_TWEAK} is not 0")
  15. ENDIF(NOT "${VersionTestC_FIND_VERSION_TWEAK}" STREQUAL "0")
  16. IF(NOT "${VersionTestC_FIND_VERSION_COUNT}" STREQUAL "3")
  17. MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION_COUNT=${VersionTestC_FIND_VERSION_COUNT} is not 3")
  18. ENDIF(NOT "${VersionTestC_FIND_VERSION_COUNT}" STREQUAL "3")