| 187 | } |
| 188 | |
| 189 | KJob* CMakeBuilder::checkConfigureJob(KDevelop::IProject* project, bool& valid) |
| 190 | { |
| 191 | valid = false; |
| 192 | KJob* configure = nullptr; |
| 193 | if( CMake::checkForNeedingConfigure(project) ) |
| 194 | { |
| 195 | configure = this->configure(project); |
| 196 | } |
| 197 | else if( CMake::currentBuildDir(project).isEmpty() ) |
| 198 | { |
| 199 | return new ErrorJob(this, i18n("No build directory configured, cannot install")); |
| 200 | } |
| 201 | valid = true; |
| 202 | return configure; |
| 203 | } |
| 204 | |
| 205 | KJob* CMakeBuilder::configure( KDevelop::IProject* project ) |
| 206 | { |
nothing calls this directly
no test coverage detected