Skip to content
Snippets Groups Projects
Commit 92a51377 authored by Brad King's avatar Brad King
Browse files

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.
parent 810c47f5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment