diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-11-03 21:55:42 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-11-03 21:55:42 (GMT) |
commit | 83d02ee52b60e541d2f52feff0c0858e7e7595e8 (patch) | |
tree | 7e20915ceb4c510fb6f8e4dd757b313bd6b633a9 /Source/cmQtAutomoc.cxx | |
parent | 22bf096474dbd819e4a10cc3b45fa54ba50213d0 (diff) | |
download | CMake-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/cmQtAutomoc.cxx')
-rw-r--r-- | Source/cmQtAutomoc.cxx | 2 |
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); |