Skip to content

find_dependency: Always search dependencies

Damien requested to merge damienrg/cmake:find-dependency-fix-17583 into master

When a dependency was already found, find_dependency did not search it again. While this works in basic case, it does not when there are components as the check does not take components into account.

Given the fact that there is no documentation about this optimization and that the correct implementation is not trivial as it would require changes in find_package to have the list of components already found we always search dependencies.

Fixes: #17583 (closed)

Edited by Brad King

Merge request reports