diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-06 07:41:20 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-06-07 07:29:30 (GMT) |
commit | 3ac4b90bfdcca97f1f63056c97afee38cf66ea12 (patch) | |
tree | bbfa8812400f195520a2d305b74750606bc2286e /Source/cmGetSourceFilePropertyCommand.cxx | |
parent | 7c0aa672fe4f1b5c4a15a89d90cd80009a1399d0 (diff) | |
download | CMake-3ac4b90bfdcca97f1f63056c97afee38cf66ea12.zip CMake-3ac4b90bfdcca97f1f63056c97afee38cf66ea12.tar.gz CMake-3ac4b90bfdcca97f1f63056c97afee38cf66ea12.tar.bz2 |
cmPropertyMap: Require a non-empty name parameter.
The cmGetPropertyCommand already checks for this.
Diffstat (limited to 'Source/cmGetSourceFilePropertyCommand.cxx')
-rw-r--r-- | Source/cmGetSourceFilePropertyCommand.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGetSourceFilePropertyCommand.cxx b/Source/cmGetSourceFilePropertyCommand.cxx index 7667a85..46daa34 100644 --- a/Source/cmGetSourceFilePropertyCommand.cxx +++ b/Source/cmGetSourceFilePropertyCommand.cxx @@ -38,7 +38,11 @@ bool cmGetSourceFilePropertyCommand this->Makefile->AddDefinition(var, sf->GetLanguage().c_str()); return true; } - const char *prop = sf->GetPropertyForUser(args[2]); + const char *prop = 0; + if (!args[2].empty()) + { + prop = sf->GetPropertyForUser(args[2]); + } if (prop) { this->Makefile->AddDefinition(var, prop); |