diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-06-18 13:13:39 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-06-18 13:13:39 (GMT) |
commit | 5394a7534010660b0ad15ddb44c58ff293bdf41e (patch) | |
tree | 13d2c5db4d6ed2f8f3cd73d5de74d035df8d9b82 /Source/cmMakefile.cxx | |
parent | 6309da4242eb81017464174e69679e42f66f5d81 (diff) | |
download | CMake-5394a7534010660b0ad15ddb44c58ff293bdf41e.zip CMake-5394a7534010660b0ad15ddb44c58ff293bdf41e.tar.gz CMake-5394a7534010660b0ad15ddb44c58ff293bdf41e.tar.bz2 |
BUG: fix not being able to find generated files in the binary tree
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index f4d7a38..7108599 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1726,7 +1726,7 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName, // OK a source file object doesn't exist for the source // maybe we made a bad call on assuming it was in the src tree - if (generated && relative) + if (relative) { src = this->GetCurrentOutputDirectory(); src += "/"; @@ -1737,7 +1737,13 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName, { return ret; } - + // go back to looking in the source directory for it + if(relative) + { + src = this->GetCurrentDirectory(); + src += "/"; + src += sourceName; + } // we must create one cmSourceFile file; std::string path = cmSystemTools::GetFilenamePath(src); |