OpenCVConfig-version.cmake 418 B

123456789101112131415
  1. set(OpenCV_VERSION 4.5.4)
  2. set(PACKAGE_VERSION ${OpenCV_VERSION})
  3. set(PACKAGE_VERSION_EXACT False)
  4. set(PACKAGE_VERSION_COMPATIBLE False)
  5. if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
  6. set(PACKAGE_VERSION_EXACT True)
  7. set(PACKAGE_VERSION_COMPATIBLE True)
  8. endif()
  9. if(PACKAGE_FIND_VERSION_MAJOR EQUAL 4
  10. AND PACKAGE_FIND_VERSION VERSION_LESS PACKAGE_VERSION)
  11. set(PACKAGE_VERSION_COMPATIBLE True)
  12. endif()