Skip to content
Snippets Groups Projects
Commit 5394a753 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: fix not being able to find generated files in the binary tree

parent 6309da42
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment