mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -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:
@@ -33,9 +33,11 @@ public:
|
||||
|
||||
/** Set the full path to the export file to generate. */
|
||||
void SetExportFile(const char* mainFile);
|
||||
const char *GetMainExportFileName() const;
|
||||
|
||||
/** Set the namespace in which to place exported target names. */
|
||||
void SetNamespace(const char* ns) { this->Namespace = ns; }
|
||||
std::string GetNamespace() const { return this->Namespace; }
|
||||
|
||||
void SetExportOld(bool exportOld) { this->ExportOld = exportOld; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user