find_dependency macro cannot be called from find modules
The find_dependency
macro calls return
in one code path, but since it is a macro this actually returns from the caller. This means a find module that calls find_dependency(...)
contains an implicit maybe-return()
and cannot know whether the return will occur.
The macro was designed only for use by <pkg>Config.cmake
files.
Edited by Brad King