diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2016-06-25 20:51:51 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2016-07-16 18:09:18 (GMT) |
commit | ea6475334aff57633ad7bb80c013c8953328a909 (patch) | |
tree | 86e55baf1e76205b3021cf2ce297b90adc1baf30 /Source/cmGetPropertyCommand.cxx | |
parent | 564234912935ddb57c8553b7c9c97e8745a09ede (diff) | |
download | CMake-ea6475334aff57633ad7bb80c013c8953328a909.zip CMake-ea6475334aff57633ad7bb80c013c8953328a909.tar.gz CMake-ea6475334aff57633ad7bb80c013c8953328a909.tar.bz2 |
Do not report ALIASED_TARGET as always set (#15783)
The cmGetPropertyCommand::StoreResult expects NULL for unset
properties. Make ALIASED_TARGET align with that expectation.
Additional corrections to the unit tests are necessary because
get_property removes variables for unset properties (in contrast
to get_target_property which stores a -NOTFOUND value).
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r-- | Source/cmGetPropertyCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx index 854fdb8..2307e08 100644 --- a/Source/cmGetPropertyCommand.cxx +++ b/Source/cmGetPropertyCommand.cxx @@ -253,7 +253,7 @@ bool cmGetPropertyCommand::HandleTargetMode() if (this->Makefile->IsAlias(this->Name)) { return this->StoreResult(target->GetName().c_str()); } else { - return this->StoreResult((this->Variable + "-NOTFOUND").c_str()); + return this->StoreResult(NULL); } } return this->StoreResult( |