Changeset View
Changeset View
Standalone View
Standalone View
projectbuilders/cmakebuilder/cmakejob.cpp
Context not available. | |||||
82 | QStringList CMakeJob::commandLine() const | 82 | QStringList CMakeJob::commandLine() const | ||
---|---|---|---|---|---|
83 | { | 83 | { | ||
84 | QStringList args; | 84 | QStringList args; | ||
85 | args << CMakeBuilderSettings::self()->cmakeExecutable().toLocalFile(); | 85 | QString cmakeProjectExecutable = CMake::currentCmakeExecutable( m_project ); | ||
86 | args << | ||||
87 | (cmakeProjectExecutable.isEmpty() ? | ||||
88 | CMakeBuilderSettings::self()->cmakeExecutable().toLocalFile() : cmakeProjectExecutable); | ||||
89 | | ||||
86 | args << QStringLiteral("-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"); | 90 | args << QStringLiteral("-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"); | ||
87 | 91 | | |||
88 | QString installDir = CMake::currentInstallDir( m_project ).toLocalFile(); | 92 | QString installDir = CMake::currentInstallDir( m_project ).toLocalFile(); | ||
Context not available. |