diff options
author | Brad King <brad.king@kitware.com> | 2017-03-28 16:55:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-28 17:10:55 (GMT) |
commit | 8a619e8c85def632e9e7938fc5a3a36bb22f46ff (patch) | |
tree | bc00ad956e78f61900ad8f05668304491ab6b8cf /Source | |
parent | 1adbe223cd10ee133f5137da028ed86ddef7cc4d (diff) | |
download | CMake-8a619e8c85def632e9e7938fc5a3a36bb22f46ff.zip CMake-8a619e8c85def632e9e7938fc5a3a36bb22f46ff.tar.gz CMake-8a619e8c85def632e9e7938fc5a3a36bb22f46ff.tar.bz2 |
cmIDEOptions: Add GetDefines method
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmIDEOptions.cxx | 5 | ||||
-rw-r--r-- | Source/cmIDEOptions.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx index c6c0e05..8d07776 100644 --- a/Source/cmIDEOptions.cxx +++ b/Source/cmIDEOptions.cxx @@ -148,6 +148,11 @@ void cmIDEOptions::AddDefines(const std::vector<std::string>& defines) this->Defines.insert(this->Defines.end(), defines.begin(), defines.end()); } +std::vector<std::string> const& cmIDEOptions::GetDefines() const +{ + return this->Defines; +} + void cmIDEOptions::AddFlag(const char* flag, const char* value) { this->FlagMap[flag] = value; diff --git a/Source/cmIDEOptions.h b/Source/cmIDEOptions.h index a0696e1..be2fd6d 100644 --- a/Source/cmIDEOptions.h +++ b/Source/cmIDEOptions.h @@ -24,6 +24,8 @@ public: void AddDefine(const std::string& define); void AddDefines(const char* defines); void AddDefines(const std::vector<std::string>& defines); + std::vector<std::string> const& GetDefines() const; + void AddFlag(const char* flag, const char* value); void AddFlag(const char* flag, std::vector<std::string> const& value); void AppendFlag(std::string const& flag, std::string const& value); |