cmExportSet: subsume cmExportSetMap source files

This commit is contained in:
Tushar Maheshwari
2019-09-14 00:39:15 +05:30
parent 6511fa6f33
commit 71f088f53a
12 changed files with 30 additions and 52 deletions
+13
View File
@@ -5,6 +5,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include <map>
#include <memory>
#include <string>
#include <vector>
@@ -49,4 +50,16 @@ private:
std::vector<cmInstallExportGenerator const*> Installations;
};
/// A name -> cmExportSet map with overloaded operator[].
class cmExportSetMap : public std::map<std::string, cmExportSet>
{
public:
/** \brief Overloaded operator[].
*
* The operator is overloaded because cmExportSet has no default constructor:
* we do not want unnamed export sets.
*/
cmExportSet& operator[](const std::string& name);
};
#endif