diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-07-13 21:14:41 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-07-15 18:57:33 (GMT) |
commit | 9dbba1b46421d4c45f7090f4573df6e73afccf69 (patch) | |
tree | b4c6a0985d675a6e1e0fd4123608e5a6a36ae235 /Source/cmCacheManager.cxx | |
parent | 37340687a4d779320d7778cb62fdfd384fa32f9a (diff) | |
download | CMake-9dbba1b46421d4c45f7090f4573df6e73afccf69.zip CMake-9dbba1b46421d4c45f7090f4573df6e73afccf69.tar.gz CMake-9dbba1b46421d4c45f7090f4573df6e73afccf69.tar.bz2 |
Fix #12342: Add APPEND_STRING option to set_property()
set_property() has APPEND, which creates a list. E.g. when
appending to COMPILE_FLAGS a string is needed, not a list.
With the APPEND_STRING option the value is append as string,
not as list.
Alex
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index c8374db..ab0bb79 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -849,7 +849,8 @@ void cmCacheManager::CacheEntry::SetProperty(const char* prop, //---------------------------------------------------------------------------- void cmCacheManager::CacheEntry::AppendProperty(const char* prop, - const char* value) + const char* value, + bool asString) { if(strcmp(prop, "TYPE") == 0) { @@ -859,7 +860,7 @@ void cmCacheManager::CacheEntry::AppendProperty(const char* prop, { if(value) { - if(!this->Value.empty() && *value) + if(!this->Value.empty() && *value && !asString) { this->Value += ";"; } @@ -868,7 +869,7 @@ void cmCacheManager::CacheEntry::AppendProperty(const char* prop, } else { - this->Properties.AppendProperty(prop, value, cmProperty::CACHE); + this->Properties.AppendProperty(prop, value, cmProperty::CACHE, asString); } } @@ -893,11 +894,12 @@ void cmCacheManager::CacheIterator::SetProperty(const char* p, const char* v) //---------------------------------------------------------------------------- void cmCacheManager::CacheIterator::AppendProperty(const char* p, - const char* v) + const char* v, + bool asString) { if(!this->IsAtEnd()) { - this->GetEntry().AppendProperty(p, v); + this->GetEntry().AppendProperty(p, v, asString); } } |