Files
CMake/Tests/RunCMake/find_package-CPS/MissingComponent.cmake
T
Matthew Woehlke 5ae2596027 Tests: Simplify and improve RunCMake/find_package-CPS tests
Refactor common logic out of individual RunCMake/find_package-CPS tests.
Move enabling the experimental gate to the RunCMakeTest.cmake, add a
separate test to verify the experimental warning, and suppress it
everywhere else. This will greatly simplify writing non-failure tests.
2025-02-06 15:23:09 -05:00

8 lines
257 B
CMake

cmake_minimum_required(VERSION 4.0)
include(Setup.cmake)
###############################################################################
# Test requesting unavailable components from a package.
find_package(ComponentTest REQUIRED COMPONENTS DoesNotExist)