diff options
author | Brad King <brad.king@kitware.com> | 2014-05-28 16:34:36 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-05-28 16:34:36 (GMT) |
commit | 8df4d03d99ba88394d931f41d679defdd226b193 (patch) | |
tree | 7ef91610ab967bd8ba37e8d4c3fcd8cda407f44b /Source/cmake.cxx | |
parent | ca2b012cb9dd488b74871bf481b1bb9154fdf804 (diff) | |
parent | d0b1d2a65be658663ce7314961e13036974f62e7 (diff) | |
download | CMake-8df4d03d99ba88394d931f41d679defdd226b193.zip CMake-8df4d03d99ba88394d931f41d679defdd226b193.tar.gz CMake-8df4d03d99ba88394d931f41d679defdd226b193.tar.bz2 |
Merge topic 'cpack-properties'
d0b1d2a6 CPackWiX: Implement CPACK_NEVER_OVERWRITE and CPACK_PERMANENT properties
15a8af21 Add an "installed file" property scope
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 976bf44..60e92a0 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2294,6 +2294,41 @@ bool cmake::GetPropertyAsBool(const std::string& prop) return cmSystemTools::IsOn(this->GetProperty(prop)); } +cmInstalledFile *cmake::GetOrCreateInstalledFile( + cmMakefile* mf, const std::string& name) +{ + std::map<std::string, cmInstalledFile>::iterator i = + this->InstalledFiles.find(name); + + if(i != this->InstalledFiles.end()) + { + cmInstalledFile &file = i->second; + return &file; + } + else + { + cmInstalledFile &file = this->InstalledFiles[name]; + file.SetName(mf, name); + return &file; + } +} + +cmInstalledFile const* cmake::GetInstalledFile(const std::string& name) const +{ + std::map<std::string, cmInstalledFile>::const_iterator i = + this->InstalledFiles.find(name); + + if(i != this->InstalledFiles.end()) + { + cmInstalledFile const& file = i->second; + return &file; + } + else + { + return 0; + } +} + int cmake::GetSystemInformation(std::vector<std::string>& args) { // so create the directory |