Browse Source

cmMakefile: Access the execution list file from the cmState.

Stephen Kelly 10 years ago
parent
commit
30d44efaf8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmMakefile.cxx

+ 2 - 1
Source/cmMakefile.cxx

@@ -3418,7 +3418,8 @@ std::string cmMakefile::GetExecutionFilePath() const
     {
     return std::string();
     }
-  return this->ContextStack.back()->FilePath;
+  assert(this->StateSnapshot.IsValid());
+  return this->StateSnapshot.GetExecutionListFile();
 }
 
 //----------------------------------------------------------------------------