mirror of
https://github.com/reactos/CMake.git
synced 2024-12-20 10:38:08 +00:00
b15c0b418b
if the HANDLE_COMPONENTS is used, FPHSA() now also checks all required COMPONENTS, i.e. all elements from <name>_FIND_COMPONENTS for which <name>_FIND_REQUIRED_<comp> is true, and sets <name>_FOUND only to true if all have been found. As discussed on cmake-developers. Alex
11 lines
321 B
CMake
11 lines
321 B
CMake
set(LOC_FOO TRUE)
|
|
|
|
set(LotsOfComponents_AComp_FOUND TRUE)
|
|
set(LotsOfComponents_BComp_FOUND FALSE)
|
|
set(LotsOfComponents_CComp_FOUND TRUE)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(LotsOfComponents REQUIRED_VARS LOC_FOO
|
|
HANDLE_COMPONENTS)
|