mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 05:39:57 -05:00
FetchContent: Fix FIND_PACKAGE_ARGS not being passed to dep providers
Fixes: #25504
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user