MCPcopy Create free account
hub / github.com/Kitware/CMake / GenerateCxxModuleInformation

Method GenerateCxxModuleInformation

Source/cmExportCMakeConfigGenerator.cxx:662–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662void 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
682void cmExportCMakeConfigGenerator::SetRequiredCMakeVersion(unsigned int major,
683 unsigned int minor,

Callers 2

GenerateMainFileMethod · 0.80
GenerateMainFileMethod · 0.80

Calls 5

GetCxxModuleFileMethod · 0.95
SetCopyIfDifferentMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected