summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2023-12-16 05:40:31 (GMT)
committerCraig Scott <craig.scott@crascit.com>2023-12-16 05:42:00 (GMT)
commit04153049700d82fd38b2a8388447e48fd6544e75 (patch)
tree7a561ee2c5d88ca40c379bd78f4a2ca8b07ce472 /Modules
parent6ba3bb0563ca72fa6fa7bc705bdf38187e3fa485 (diff)
downloadCMake-04153049700d82fd38b2a8388447e48fd6544e75.zip
CMake-04153049700d82fd38b2a8388447e48fd6544e75.tar.gz
CMake-04153049700d82fd38b2a8388447e48fd6544e75.tar.bz2
FetchContent: Fix FIND_PACKAGE_ARGS not being passed to dep providers
Fixes: #25504
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FetchContent.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake
index 1038585..7293313 100644
--- a/Modules/FetchContent.cmake
+++ b/Modules/FetchContent.cmake
@@ -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)