mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
3e6466eb16
Teach find_package to check a CPS package's version (when provided) against a version request given to the find_package invocation.
11 lines
318 B
CMake
11 lines
318 B
CMake
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 no suitable version matches.
|
|
find_package(Sample 1.4.9 REQUIRED)
|