Browse Source

Merge topic 'FixAutomocFromCCMakeFromPATH'

83d02ee make automoc work when using ccmake via PATH (#12551)
David Cole 14 years ago
parent
commit
a5579b76f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmQtAutomoc.cxx

+ 1 - 1
Source/cmQtAutomoc.cxx

@@ -67,7 +67,7 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target)
   targetDir += ".dir/";
 
   cmCustomCommandLine currentLine;
-  currentLine.push_back(makefile->GetCMakeInstance()->GetCMakeCommand());
+  currentLine.push_back(makefile->GetSafeDefinition("CMAKE_COMMAND"));
   currentLine.push_back("-E");
   currentLine.push_back("cmake_automoc");
   currentLine.push_back(targetDir);