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.

21 line
803 B

  1. set(PACKAGE_VERSION "@PROJECT_VERSION@")
  2. if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
  3. set(PACKAGE_VERSION_EXACT TRUE)
  4. endif()
  5. if(NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
  6. set(PACKAGE_VERSION_COMPATIBLE TRUE)
  7. else(NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
  8. set(PACKAGE_VERSION_UNSUITABLE TRUE)
  9. endif(NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
  10. # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
  11. if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "@CMAKE_SIZEOF_VOID_P@" STREQUAL "")
  12. return()
  13. endif()
  14. if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "@CMAKE_SIZEOF_VOID_P@")
  15. math(EXPR installedBits "8 * 8")
  16. set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
  17. set(PACKAGE_VERSION_UNSUITABLE TRUE)
  18. endif()