Conversation
If the current directory contains a 'compile_commands.json' file the loop is left early.
|
Thats right, there is no need to keep searching if the compile_commands.json file is found. |
|
Are you sure? Without this (with the return) the subdirectories are not searched and my project was missing almost all of my include directories |
|
Why are your include directories not in the compile_commands.json file? Is cmake emitting an empty compile_commands.json file? |
|
Well this is interesting... My project does not make use of I would say this is not so much of a fix but an improvement to support mixed projects - unless there is another disadvantage than the initial runtime cost. |
|
Perhaps it would be better to have config that sets where the flags come from. |
|
That would be the best solution I guess.
|
|
I am thinking like:
|
|
That would work too! I had another a look at the build dir and it seems that the 👍 |
If the current directory contains a 'compile_commands.json' file the loop is
left early.