diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx index 5d58e12fc..69826e0f8 100644 --- a/Source/cmGlobalKdevelopGenerator.cxx +++ b/Source/cmGlobalKdevelopGenerator.cxx @@ -385,6 +385,10 @@ void cmGlobalKdevelopGenerator return; } + // check for a version control system + bool hasSvn = cmSystemTools::FileExists((projectDir + "/.svn").c_str()); + bool hasCvs = cmSystemTools::FileExists((projectDir + "/CVS").c_str()); + fout<<"\n"; fout<<"\n"; fout<<" \n"; @@ -400,6 +404,16 @@ void cmGlobalKdevelopGenerator fout<<" \n"; fout<<" C\n"; fout<<" \n"; + + if (hasSvn) + { + fout << " kdevsubversion\n"; + } + else if (hasCvs) + { + fout << " kdevcvsservice\n"; + } + fout<<" \n"; fout<<" \n"; fout<<" "<