mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
We are working on adding CPS support to find_package, which will obviously require tests (ideally, and especially in the long term, a non-trivial number thereof). While it would be possibly to lump these into the already rather lengthy FindPackageTest, it seems likely they can be kept separate. Therefore, rename FindPackageTest to FindPackageCMakeTest so that the name FindPackageCpsTest will be available.
11 lines
349 B
CMake
11 lines
349 B
CMake
set(LOC_FOO TRUE)
|
|
|
|
set(LotsOfComponents_AComp_FOUND TRUE)
|
|
set(LotsOfComponents_BComp_FOUND FALSE)
|
|
set(LotsOfComponents_CComp_FOUND TRUE)
|
|
|
|
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
|
|
|
find_package_handle_standard_args(LotsOfComponents REQUIRED_VARS LOC_FOO
|
|
HANDLE_COMPONENTS)
|