BUG: fix for 4186, kdevelop adding file twice
This commit is contained in:
parent
2f84bd1758
commit
bd531d3fae
@ -175,8 +175,7 @@ SET(SRCS
|
|||||||
# Kdevelop only works on UNIX and not windows
|
# Kdevelop only works on UNIX and not windows
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
SET(SRCS ${SRCS}
|
SET(SRCS ${SRCS}
|
||||||
cmGlobalKdevelopGenerator.cxx
|
cmGlobalKdevelopGenerator.cxx)
|
||||||
cmLocalKdevelopGenerator.cxx)
|
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
# XCode only works on apple
|
# XCode only works on apple
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
=========================================================================*/
|
=========================================================================*/
|
||||||
|
|
||||||
#include "cmGlobalKdevelopGenerator.h"
|
#include "cmGlobalKdevelopGenerator.h"
|
||||||
#include "cmLocalKdevelopGenerator.h"
|
#include "cmLocalUnixMakefileGenerator3.h"
|
||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
#include "cmake.h"
|
#include "cmake.h"
|
||||||
#include "cmSourceFile.h"
|
#include "cmSourceFile.h"
|
||||||
@ -36,7 +36,8 @@ cmGlobalKdevelopGenerator::cmGlobalKdevelopGenerator()
|
|||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
cmLocalGenerator *cmGlobalKdevelopGenerator::CreateLocalGenerator()
|
cmLocalGenerator *cmGlobalKdevelopGenerator::CreateLocalGenerator()
|
||||||
{
|
{
|
||||||
cmLocalGenerator *lg = new cmLocalKdevelopGenerator;
|
cmLocalUnixMakefileGenerator3 *lg = new cmLocalUnixMakefileGenerator3;
|
||||||
|
lg->SetForceVerboseMakefiles(true);
|
||||||
lg->SetGlobalGenerator(this);
|
lg->SetGlobalGenerator(this);
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
@ -185,6 +186,7 @@ bool cmGlobalKdevelopGenerator
|
|||||||
hname += *ext;
|
hname += *ext;
|
||||||
if(cmSystemTools::FileExists(hname.c_str()))
|
if(cmSystemTools::FileExists(hname.c_str()))
|
||||||
{
|
{
|
||||||
|
cmSystemTools::ReplaceString(hname, projectDir.c_str(), "");
|
||||||
files.insert(hname);
|
files.insert(hname);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
/*=========================================================================
|
|
||||||
|
|
||||||
Program: CMake - Cross-Platform Makefile Generator
|
|
||||||
Module: $RCSfile$
|
|
||||||
Language: C++
|
|
||||||
Date: $Date$
|
|
||||||
Version: $Revision$
|
|
||||||
|
|
||||||
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
|
||||||
Copyright (c) 2004 Alexander Neundorf, neundorf@kde.org. All rights reserved.
|
|
||||||
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
|
||||||
|
|
||||||
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
||||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. See the above copyright notices for more information.
|
|
||||||
|
|
||||||
=========================================================================*/
|
|
||||||
#include "cmGlobalGenerator.h"
|
|
||||||
#include "cmLocalKdevelopGenerator.h"
|
|
||||||
#include "cmMakefile.h"
|
|
||||||
#include "cmSystemTools.h"
|
|
||||||
#include "cmSourceFile.h"
|
|
||||||
#include "cmCacheManager.h"
|
|
||||||
#include "cmGeneratedFileStream.h"
|
|
||||||
#include "cmake.h"
|
|
||||||
#include <cmsys/RegularExpression.hxx>
|
|
||||||
|
|
||||||
|
|
||||||
cmLocalKdevelopGenerator::cmLocalKdevelopGenerator()
|
|
||||||
:cmLocalUnixMakefileGenerator3()
|
|
||||||
{
|
|
||||||
// KDevelop can itself shorten the output, so it should
|
|
||||||
// always get the full output, otherwise the "full output"
|
|
||||||
// option in kdevelop doesn't make much sense, Alex
|
|
||||||
this->ForceVerboseMakefiles=true;
|
|
||||||
}
|
|
||||||
|
|
||||||
cmLocalKdevelopGenerator::~cmLocalKdevelopGenerator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
|||||||
/*=========================================================================
|
|
||||||
|
|
||||||
Program: CMake - Cross-Platform Makefile Generator
|
|
||||||
Module: $RCSfile$
|
|
||||||
Language: C++
|
|
||||||
Date: $Date$
|
|
||||||
Version: $Revision$
|
|
||||||
|
|
||||||
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
|
||||||
Copyright (c) 2004 Alexander Neundorf, neundorf@kde.org. All rights reserved.
|
|
||||||
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
|
||||||
|
|
||||||
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
||||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. See the above copyright notices for more information.
|
|
||||||
|
|
||||||
=========================================================================*/
|
|
||||||
#ifndef cmLocalKdevelopGenerator_h
|
|
||||||
#define cmLocalKdevelopGenerator_h
|
|
||||||
|
|
||||||
#include "cmLocalUnixMakefileGenerator3.h"
|
|
||||||
|
|
||||||
class cmDependInformation;
|
|
||||||
class cmMakeDepend;
|
|
||||||
class cmTarget;
|
|
||||||
class cmSourceFile;
|
|
||||||
|
|
||||||
/** \class cmLocalKdevelopGenerator
|
|
||||||
*/
|
|
||||||
class cmLocalKdevelopGenerator : public cmLocalUnixMakefileGenerator3
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
///! Set cache only and recurse to false by default.
|
|
||||||
cmLocalKdevelopGenerator();
|
|
||||||
|
|
||||||
virtual ~cmLocalKdevelopGenerator();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
@ -51,18 +51,6 @@ public:
|
|||||||
virtual void Generate();
|
virtual void Generate();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// this returns the relative path between the HomeOutputDirectory and this
|
// this returns the relative path between the HomeOutputDirectory and this
|
||||||
// local generators StartOutputDirectory
|
// local generators StartOutputDirectory
|
||||||
const std::string &GetHomeRelativeOutputPath();
|
const std::string &GetHomeRelativeOutputPath();
|
||||||
@ -135,6 +123,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
void SetSilentNoColon(bool v) {this->SilentNoColon = v;}
|
void SetSilentNoColon(bool v) {this->SilentNoColon = v;}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If set to true, the CMake variable CMAKE_VERBOSE_MAKEFILES doesn't have
|
||||||
|
* anymore. Set it to true when writing a generator where short output
|
||||||
|
* doesn't make sense, e.g. because the full output is parsed by an
|
||||||
|
* IDE/editor.
|
||||||
|
*/
|
||||||
|
void SetForceVerboseMakefiles(bool enable)
|
||||||
|
{this->ForceVerboseMakefiles=enable;}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the command to use for native make shell echo. The value
|
* Set the command to use for native make shell echo. The value
|
||||||
* should include all parts of the command up to the beginning of
|
* should include all parts of the command up to the beginning of
|
||||||
@ -267,19 +264,6 @@ protected:
|
|||||||
void WriteDirectoryInformationFile();
|
void WriteDirectoryInformationFile();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// write the depend info
|
// write the depend info
|
||||||
void WriteDependLanguageInfo(std::ostream& cmakefileStream, cmTarget &tgt);
|
void WriteDependLanguageInfo(std::ostream& cmakefileStream, cmTarget &tgt);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user