/src/CMake/Source/cmInstallCMakeConfigExportGenerator.cxx
Line | Count | Source |
1 | | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
2 | | file LICENSE.rst or https://cmake.org/licensing for details. */ |
3 | | #include "cmInstallCMakeConfigExportGenerator.h" |
4 | | |
5 | | #include <utility> |
6 | | |
7 | | #include <cm/memory> |
8 | | |
9 | | #include "cmExportInstallCMakeConfigGenerator.h" |
10 | | #include "cmExportInstallFileGenerator.h" |
11 | | #include "cmListFileCache.h" |
12 | | |
13 | | class cmExportSet; |
14 | | |
15 | | cmInstallCMakeConfigExportGenerator::cmInstallCMakeConfigExportGenerator( |
16 | | cmExportSet* exportSet, std::string destination, std::string filePermissions, |
17 | | std::vector<std::string> const& configurations, std::string component, |
18 | | MessageLevel message, bool excludeFromAll, std::string filename, |
19 | | std::string targetNamespace, std::string cxxModulesDirectory, bool exportOld, |
20 | | bool exportPackageDependencies, cmListFileBacktrace backtrace) |
21 | 0 | : cmInstallExportGenerator( |
22 | 0 | exportSet, std::move(destination), std::move(filePermissions), |
23 | 0 | configurations, std::move(component), message, excludeFromAll, |
24 | 0 | std::move(filename), std::move(targetNamespace), |
25 | 0 | std::move(cxxModulesDirectory), std::move(backtrace)) |
26 | 0 | , ExportOld(exportOld) |
27 | 0 | , ExportPackageDependencies(exportPackageDependencies) |
28 | 0 | { |
29 | 0 | this->EFGen = cm::make_unique<cmExportInstallCMakeConfigGenerator>(this); |
30 | 0 | } |
31 | | |
32 | 0 | cmInstallCMakeConfigExportGenerator::~cmInstallCMakeConfigExportGenerator() = |
33 | | default; |
34 | | |
35 | | void cmInstallCMakeConfigExportGenerator::GenerateScript(std::ostream& os) |
36 | 0 | { |
37 | 0 | auto* const efgen = |
38 | 0 | static_cast<cmExportInstallCMakeConfigGenerator*>(this->EFGen.get()); |
39 | 0 | efgen->SetExportOld(this->ExportOld); |
40 | 0 | efgen->SetExportPackageDependencies(this->ExportPackageDependencies); |
41 | |
|
42 | 0 | this->cmInstallExportGenerator::GenerateScript(os); |
43 | 0 | } |