diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-01-25 15:37:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-01-25 15:37:00 (GMT) |
commit | 1398517f315b2b0420972df1dc1e61294ea5f749 (patch) | |
tree | 91d5278f549d2f49a441e127215c8ca0896586b6 /Source/cmGlobalGenerator.cxx | |
parent | 33e7bd66c09ee51edbbccfc1014813e30d80ec5f (diff) | |
download | CMake-1398517f315b2b0420972df1dc1e61294ea5f749.zip CMake-1398517f315b2b0420972df1dc1e61294ea5f749.tar.gz CMake-1398517f315b2b0420972df1dc1e61294ea5f749.tar.bz2 |
AppendProperty: convert value param to std::string
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 38ff3ae..45e13bc 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1645,7 +1645,9 @@ void cmGlobalGenerator::FinalizeTargetCompileInfo() for (std::string const& c : configs) { std::string defPropName = cmStrCat("COMPILE_DEFINITIONS_", cmSystemTools::UpperCase(c)); - t->AppendProperty(defPropName, mf->GetProperty(defPropName)); + if (const char* val = mf->GetProperty(defPropName)) { + t->AppendProperty(defPropName, val); + } } } } |