mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
export(): Process the export() command at generate time.
Make the API for adding targets string based so that it can easily use cmGeneratorTarget. Teach the cmIncludeCommand to generate the exported file at configure-time instead if it is to be include()d. The RunCMake.ExportWithoutLanguage test now needs a dummy header.h file as expected error from export() is now reported after the missing file error.
This commit is contained in:
@@ -51,6 +51,12 @@ void cmExportFileGenerator::SetExportFile(const char* mainFile)
|
||||
cmSystemTools::GetFilenameLastExtension(this->MainImportFile);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const char* cmExportFileGenerator::GetMainExportFileName() const
|
||||
{
|
||||
return this->MainImportFile.c_str();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool cmExportFileGenerator::GenerateImportFile()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user