summaryrefslogtreecommitdiffstats
path: root/Source/cmGetSourceFilePropertyCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-03-11 22:04:11 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-07-08 14:13:50 (GMT)
commitd2803fbac6ca20c998ff5364e79f0841eba6c579 (patch)
tree3367bc50946dc20bb1ba0dbcd3c3904b82a58833 /Source/cmGetSourceFilePropertyCommand.cxx
parent49c830d597bbd8322c7b41847eac3012064b0b7d (diff)
downloadCMake-d2803fbac6ca20c998ff5364e79f0841eba6c579.zip
CMake-d2803fbac6ca20c998ff5364e79f0841eba6c579.tar.gz
CMake-d2803fbac6ca20c998ff5364e79f0841eba6c579.tar.bz2
cmMakefile: Add a CreateSource method
The GetOrCreateSource searches the source file listing again, but some callers know that it already didn't exist.
Diffstat (limited to 'Source/cmGetSourceFilePropertyCommand.cxx')
-rw-r--r--Source/cmGetSourceFilePropertyCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGetSourceFilePropertyCommand.cxx b/Source/cmGetSourceFilePropertyCommand.cxx
index 8a96289..7667a85 100644
--- a/Source/cmGetSourceFilePropertyCommand.cxx
+++ b/Source/cmGetSourceFilePropertyCommand.cxx
@@ -29,7 +29,7 @@ bool cmGetSourceFilePropertyCommand
// for the location we must create a source file first
if (!sf && args[2] == "LOCATION")
{
- sf = this->Makefile->GetOrCreateSource(file);
+ sf = this->Makefile->CreateSource(file);
}
if(sf)
{