| 64 | } |
| 65 | |
| 66 | void writeBuildDirParameter(KDevelop::IProject* project, const char* key, const QString& value) |
| 67 | { |
| 68 | int buildDirIndex = CMake::currentBuildDirIndex(project); |
| 69 | if (buildDirIndex >= 0) |
| 70 | { |
| 71 | KConfigGroup buildDirGrp = buildDirGroup( project, buildDirIndex ); |
| 72 | buildDirGrp.writeEntry( key, value ); |
| 73 | } |
| 74 | |
| 75 | else |
| 76 | { |
| 77 | qCWarning(CMAKE) << "cannot write key" << key << "(" << value << ")" << "when no builddir is set!"; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | template <typename Key> |
| 82 | void writeProjectBaseParameter(KDevelop::IProject* project, const Key& key, const QString& value) |
no test coverage detected