blob: 877746d2341a59e9ad44df5eb9c2556c639aec46 [file]
cmake_minimum_required(VERSION 4.0)
include(Setup.cmake)
set(CMAKE_FIND_PACKAGE_SORT_ORDER NAME)
set(CMAKE_FIND_PACKAGE_SORT_DIRECTION DEC)
###############################################################################
# Test finding a package with multiple suitable versions when a version limit
# is present but not restricting the matches.
find_package(Sample 1.1.0...1.2.5 REQUIRED)
if(NOT Sample_VERSION STREQUAL "1.2.3+clarke")
message(SEND_ERROR "Sample wrong version ${Sample_VERSION} !")
endif()