mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05:00
VisualStudio generators: refactoring
Uniformize include directories handling. Fix memory leaks in class cmVisualStudio10TargetGenerator: OptionsMap uses now std::unique_ptr.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <iosfwd>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -24,6 +25,8 @@ class cmVisualStudioGeneratorOptions;
|
||||
|
||||
class cmVisualStudio10TargetGenerator
|
||||
{
|
||||
CM_DISABLE_COPY(cmVisualStudio10TargetGenerator)
|
||||
|
||||
public:
|
||||
cmVisualStudio10TargetGenerator(cmGeneratorTarget* target,
|
||||
cmGlobalVisualStudio10Generator* gg);
|
||||
@@ -169,7 +172,7 @@ private:
|
||||
|
||||
private:
|
||||
typedef cmVisualStudioGeneratorOptions Options;
|
||||
typedef std::map<std::string, Options*> OptionsMap;
|
||||
typedef std::map<std::string, std::unique_ptr<Options>> OptionsMap;
|
||||
OptionsMap ClOptions;
|
||||
OptionsMap RcOptions;
|
||||
OptionsMap CudaOptions;
|
||||
|
||||
Reference in New Issue
Block a user