| 660 | } |
| 661 | |
| 662 | void cmExportCMakeConfigGenerator::GenerateCxxModuleInformation( |
| 663 | std::string const& name, std::ostream& os) |
| 664 | { |
| 665 | auto const cxx_module_dirname = this->GetCxxModulesDirectory(); |
| 666 | if (cxx_module_dirname.empty()) { |
| 667 | return; |
| 668 | } |
| 669 | |
| 670 | // Write the include. |
| 671 | os << "# Include C++ module properties\n" |
| 672 | "include(\"${CMAKE_CURRENT_LIST_DIR}/" |
| 673 | << cxx_module_dirname << "/cxx-modules-" << name << ".cmake\")\n\n"; |
| 674 | |
| 675 | // Include all configuration-specific include files. |
| 676 | cmGeneratedFileStream ap(this->GetCxxModuleFile(name), true); |
| 677 | ap.SetCopyIfDifferent(true); |
| 678 | |
| 679 | this->GenerateCxxModuleConfigInformation(name, ap); |
| 680 | } |
| 681 | |
| 682 | void cmExportCMakeConfigGenerator::SetRequiredCMakeVersion(unsigned int major, |
| 683 | unsigned int minor, |
no test coverage detected