summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-04 17:15:08 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-04 17:15:08 (GMT)
commit92a51377a14625691a194816deb8172db6f0a1de (patch)
tree5e7a5ce9b41d427fcfcc3da7d6b7d7e220447586 /Source/cmake.cxx
parent810c47f56e0bde46c163943609f7e0464e6287fd (diff)
downloadCMake-92a51377a14625691a194816deb8172db6f0a1de.zip
CMake-92a51377a14625691a194816deb8172db6f0a1de.tar.gz
CMake-92a51377a14625691a194816deb8172db6f0a1de.tar.bz2
BUG: Fix unsetting of global properties
The set_property command unsets a property if it is given no value. In the case of GLOBAL properties, the cmake::SetProperty method would replace a NULL value with "NOTFOUND". Instead it should be left as NULL so that the property is unset as expected. Once it is unset the get_cmake_property command will still report NOTFOUND while the get_property command will return the empty string as documented.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 94c27bf..0fde396 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3550,10 +3550,6 @@ void cmake::SetProperty(const char* prop, const char* value)
{
return;
}
- if (!value)
- {
- value = "NOTFOUND";
- }
this->Properties.SetProperty(prop, value, cmProperty::GLOBAL);
}