mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -05:00
cmExportSet: subsume cmExportSetMap source files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user