mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 05:45:51 +00:00
1d829c862c
Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
29 lines
632 B
C++
29 lines
632 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#include "cmProperty.h"
|
|
|
|
#include "cmConfigure.h"
|
|
|
|
void cmProperty::Set(const char* value)
|
|
{
|
|
this->Value = value;
|
|
this->ValueHasBeenSet = true;
|
|
}
|
|
|
|
void cmProperty::Append(const char* value, bool asString)
|
|
{
|
|
if (!this->Value.empty() && *value && !asString) {
|
|
this->Value += ";";
|
|
}
|
|
this->Value += value;
|
|
this->ValueHasBeenSet = true;
|
|
}
|
|
|
|
const char* cmProperty::GetValue() const
|
|
{
|
|
if (this->ValueHasBeenSet) {
|
|
return this->Value.c_str();
|
|
}
|
|
return CM_NULLPTR;
|
|
}
|