Skip to content

FetchContent: Fix FIND_PACKAGE_ARGS not being passed to dep providers

Previously, we didn't have any test that would detect whether FIND_PACKAGE_ARGS is passed through successfully to a dependency provider. We checked some argument sets, just not one that contained FIND_PACKAGE_ARGS. This MR adds a test which verifies that the provider is called before trying find_package(), and that test verifies the FIND_PACKAGE_ARGS keyword and anything after it are passed through as a side effect.

Fixes: #25504 (closed)

Merge request reports