FetchContent: Fix FIND_PACKAGE_ARGS not being passed to dep providers

Fixes: #25504
This commit is contained in:
Craig Scott
2023-12-16 16:40:31 +11:00
parent 6ba3bb0563
commit 0415304970
4 changed files with 21 additions and 2 deletions
+2 -2
View File
@@ -1975,12 +1975,12 @@ macro(FetchContent_MakeAvailable)
# This property might be defined but empty. As long as it is defined,
# find_package() can be called.
get_property(__cmake_addfpargs GLOBAL PROPERTY
_FetchContent_${contentNameLower}_find_package_args
_FetchContent_${__cmake_contentNameLower}_find_package_args
DEFINED
)
if(__cmake_addfpargs)
get_property(__cmake_fpargs GLOBAL PROPERTY
_FetchContent_${contentNameLower}_find_package_args
_FetchContent_${__cmake_contentNameLower}_find_package_args
)
string(APPEND __cmake_providerArgs " FIND_PACKAGE_ARGS")
foreach(__cmake_item IN LISTS __cmake_fpargs)