summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutomoc.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-11-08 19:43:38 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-11-08 19:43:38 (GMT)
commita5579b76f05166815a809e66d488540e24813132 (patch)
treee411e0918eb8c05fb4f83d70a5c7871df3687994 /Source/cmQtAutomoc.cxx
parent5a3a5ba0522df360a9d855958a06dce4b01413f1 (diff)
parent83d02ee52b60e541d2f52feff0c0858e7e7595e8 (diff)
downloadCMake-a5579b76f05166815a809e66d488540e24813132.zip
CMake-a5579b76f05166815a809e66d488540e24813132.tar.gz
CMake-a5579b76f05166815a809e66d488540e24813132.tar.bz2
Merge topic 'FixAutomocFromCCMakeFromPATH'
83d02ee make automoc work when using ccmake via PATH (#12551)
Diffstat (limited to 'Source/cmQtAutomoc.cxx')
-rw-r--r--Source/cmQtAutomoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx
index ff67fef..ae63701 100644
--- a/Source/cmQtAutomoc.cxx
+++ b/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);