CMakeFindDependencyMacro
-
find_dependency
-
The
find_dependency()
macro wraps afind_package()
call for a package dependency:find_dependency(<dep> [...])
It is designed to be used in a Package Configuration File (
<PackageName>Config.cmake
).find_dependency
forwards the correct parameters forQUIET
andREQUIRED
which were passed to the originalfind_package()
call. Any additional arguments specified are forwarded tofind_package()
.If the dependency could not be found it sets an informative diagnostic message and calls
return()
to end processing of the calling package configuration file and return to thefind_package()
command that loaded it.Note
The call to
return()
makes this macro unsuitable to call from Find Modules.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.15/module/CMakeFindDependencyMacro.html