diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-01-24 12:58:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-31 16:04:36 (GMT) |
commit | 88ed556d99068a5e1bf303e69a156a25fb985bcf (patch) | |
tree | 1921a969e3e734e871a96ecaf7cc9cb88caa2fff /Source | |
parent | 14a13d30eefd657e56022d30d8976cfdfaf9ab06 (diff) | |
download | CMake-88ed556d99068a5e1bf303e69a156a25fb985bcf.zip CMake-88ed556d99068a5e1bf303e69a156a25fb985bcf.tar.gz CMake-88ed556d99068a5e1bf303e69a156a25fb985bcf.tar.bz2 |
cmGeneratorTarget: make keyword strings const
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index ef3dc10..449b0c5 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -3616,13 +3616,13 @@ void cmGeneratorTarget::CheckPropertyCompatibility( const cmComputeLinkInformation::ItemVector& deps = info->GetItems(); std::set<std::string> emittedBools; - static std::string strBool = "COMPATIBLE_INTERFACE_BOOL"; + static const std::string strBool = "COMPATIBLE_INTERFACE_BOOL"; std::set<std::string> emittedStrings; - static std::string strString = "COMPATIBLE_INTERFACE_STRING"; + static const std::string strString = "COMPATIBLE_INTERFACE_STRING"; std::set<std::string> emittedMinNumbers; - static std::string strNumMin = "COMPATIBLE_INTERFACE_NUMBER_MIN"; + static const std::string strNumMin = "COMPATIBLE_INTERFACE_NUMBER_MIN"; std::set<std::string> emittedMaxNumbers; - static std::string strNumMax = "COMPATIBLE_INTERFACE_NUMBER_MAX"; + static const std::string strNumMax = "COMPATIBLE_INTERFACE_NUMBER_MAX"; for (auto const& dep : deps) { if (!dep.Target) { |