Merge topic 'CodeBlocksGeneratorFixForExternalSubdirs'
9072535
CodeBlocks Generator: Do not omit files in the project file listing.
This commit is contained in:
commit
f78f82ccbf
|
@ -289,14 +289,10 @@ void cmExtraCodeBlocksGenerator
|
||||||
std::string fileName = *(splitted.end()-1);
|
std::string fileName = *(splitted.end()-1);
|
||||||
splitted.erase(splitted.end() - 1, splitted.end());
|
splitted.erase(splitted.end() - 1, splitted.end());
|
||||||
|
|
||||||
// We don't want paths with ".." in them
|
|
||||||
// reasons are that we don't want files outside the project
|
|
||||||
// TODO: the path should be normalized first though
|
|
||||||
// We don't want paths with CMakeFiles in them
|
// We don't want paths with CMakeFiles in them
|
||||||
// or do we?
|
// or do we?
|
||||||
// In speedcrunch those where purely internal
|
// In speedcrunch those where purely internal
|
||||||
if (splitted.size() >= 1
|
if (splitted.size() >= 1
|
||||||
&& relative.find("..") == std::string::npos
|
|
||||||
&& relative.find("CMakeFiles") == std::string::npos)
|
&& relative.find("CMakeFiles") == std::string::npos)
|
||||||
{
|
{
|
||||||
tree.InsertPath(splitted, 1, fileName);
|
tree.InsertPath(splitted, 1, fileName);
|
||||||
|
|
Loading…
Reference in New Issue