summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-11-03 21:55:42 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-11-03 21:55:42 (GMT)
commit83d02ee52b60e541d2f52feff0c0858e7e7595e8 (patch)
tree7e20915ceb4c510fb6f8e4dd757b313bd6b633a9 /Source
parent22bf096474dbd819e4a10cc3b45fa54ba50213d0 (diff)
downloadCMake-83d02ee52b60e541d2f52feff0c0858e7e7595e8.zip
CMake-83d02ee52b60e541d2f52feff0c0858e7e7595e8.tar.gz
CMake-83d02ee52b60e541d2f52feff0c0858e7e7595e8.tar.bz2
make automoc work when using ccmake via PATH (#12551)
In ccmake, cmake::GetCMakeCommand() returns "/cmake" when ccmake was started from the PATH, i.e. by simply running "ccmake" Alex
Diffstat (limited to 'Source')
-rw-r--r--Source/cmQtAutomoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx
index a839489..8750b64 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);