summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-03-12 12:43:07 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-03-12 12:43:25 (GMT)
commit47562c0547c60465734c8a6bdba6a0c308c53072 (patch)
treea2f0802c8582dc4a39375b46be3c0e76aaafd573 /Source/cmExportFileGenerator.cxx
parent61b37f5dcee4a470b9989db9856e3f114465bc4b (diff)
parentb1c48069149fcd9ff128286cb059138b1df96c8f (diff)
downloadCMake-47562c0547c60465734c8a6bdba6a0c308c53072.zip
CMake-47562c0547c60465734c8a6bdba6a0c308c53072.tar.gz
CMake-47562c0547c60465734c8a6bdba6a0c308c53072.tar.bz2
Merge topic 'export-find_dependency-calls'
b1c4806914 install(EXPORT): Drop REQUIRED from exported find_dependency calls Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9329
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r--Source/cmExportFileGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index cac9cb2..7867a8e 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -1261,7 +1261,7 @@ void cmExportFileGenerator::GenerateFindDependencyCalls(std::ostream& os)
for (auto const& it : packageDependenciesSorted) {
if (it.second.Enabled == cmExportSet::PackageDependencyExportEnabled::On) {
- os << "find_dependency(" << it.first << " REQUIRED";
+ os << "find_dependency(" << it.first;
for (auto const& arg : it.second.ExtraArguments) {
os << " " << cmOutputConverter::EscapeForCMake(arg);
}