CMake/Tests/FindPackageTest/lib/RecursiveA/recursivea-config.cmake
Brad King 9fc7ea4c62 find_package: Forward component list for recursive calls in modules
Some find modules call find_package recursively to locate a package
configuration file for the package instead of searching for individual
pieces.  Commit 79e9b755 (Help recursive find_package calls in modules,
2008-10-03) taught find_package to forward the version number and EXACT
arguments through the recursive call automatically.  Do the same for the
component list.
2011-04-07 15:36:05 -04:00

5 lines
168 B
CMake

# Test config file.
if(NOT "${RecursiveA_FIND_COMPONENTS}" STREQUAL "A")
message(FATAL_ERROR "find_package(RecursiveA NO_MODULE) did not forward components")
endif()