diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-03-22 19:06:52 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-03-22 19:06:52 (GMT) |
commit | 10efe3b079caf5237e01d31b09f7947c77c7458f (patch) | |
tree | 4df9c11b285a62fdeb1c7868520e9303f95fd26e /Source/cmGetSourceFilePropertyCommand.cxx | |
parent | 43b9f184c2f9cacce2917577f9469f71f64885c5 (diff) | |
download | CMake-10efe3b079caf5237e01d31b09f7947c77c7458f.zip CMake-10efe3b079caf5237e01d31b09f7947c77c7458f.tar.gz CMake-10efe3b079caf5237e01d31b09f7947c77c7458f.tar.bz2 |
ENH: added some new functionality
Diffstat (limited to 'Source/cmGetSourceFilePropertyCommand.cxx')
-rw-r--r-- | Source/cmGetSourceFilePropertyCommand.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGetSourceFilePropertyCommand.cxx b/Source/cmGetSourceFilePropertyCommand.cxx index 3c149a4..4d444bc 100644 --- a/Source/cmGetSourceFilePropertyCommand.cxx +++ b/Source/cmGetSourceFilePropertyCommand.cxx @@ -31,6 +31,11 @@ bool cmGetSourceFilePropertyCommand::InitialPass( const char* file = args[1].c_str(); cmSourceFile* sf = this->Makefile->GetSource(file); + // for the location we must create a source file first + if (!sf && args[2] == "LOCATION") + { + sf = this->Makefile->GetOrCreateSource(file); + } if(sf) { const char *prop = sf->GetProperty(args[2].c_str()); |