diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-01 15:21:32 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-01 15:21:32 (GMT) |
commit | b9d44fc35081a3354429137dff09a8959d8a2a92 (patch) | |
tree | 3365cc08e7324917f01e23dd7214aa79d608897b /Source/cmSourceFile.cxx | |
parent | 0c61b8699cb2b1c75e033c6a7d27f0b93c0dc7bc (diff) | |
download | CMake-b9d44fc35081a3354429137dff09a8959d8a2a92.zip CMake-b9d44fc35081a3354429137dff09a8959d8a2a92.tar.gz CMake-b9d44fc35081a3354429137dff09a8959d8a2a92.tar.bz2 |
cmSourceFile: Additional static property strings
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r-- | Source/cmSourceFile.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx index efc6bb5..5ac902f 100644 --- a/Source/cmSourceFile.cxx +++ b/Source/cmSourceFile.cxx @@ -32,6 +32,8 @@ std::string const& cmSourceFile::GetExtension() const } const std::string cmSourceFile::propLANGUAGE = "LANGUAGE"; +const std::string cmSourceFile::propLOCATION = "LOCATION"; +const std::string cmSourceFile::propGENERATED = "GENERATED"; void cmSourceFile::SetObjectLibrary(std::string const& objlib) { @@ -119,7 +121,7 @@ bool cmSourceFile::FindFullPath(std::string* error) // If the file is generated compute the location without checking on // disk. - if (this->GetPropertyAsBool("GENERATED")) { + if (this->GetPropertyAsBool(propGENERATED)) { // The file is either already a full path or is relative to the // build directory for the target. this->Location.DirectoryUseBinary(); @@ -266,7 +268,7 @@ const char* cmSourceFile::GetPropertyForUser(const std::string& prop) // cmSourceFileLocation class to commit to a particular full path to // the source file as late as possible. If the users requests the // LOCATION property we must commit now. - if (prop == "LOCATION") { + if (prop == propLOCATION) { // Commit to a location. this->GetFullPath(); } @@ -278,7 +280,7 @@ const char* cmSourceFile::GetPropertyForUser(const std::string& prop) const char* cmSourceFile::GetProperty(const std::string& prop) const { // Check for computed properties. - if (prop == "LOCATION") { + if (prop == propLOCATION) { if (this->FullPath.empty()) { return nullptr; } |