<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 7, 2015 at 6:32 PM, Milian Wolff <span dir="ltr"><<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey all, esp. Aleix.<br>
<br>
In KF5, we are currently really bad at handling updates to CMakeLists.txt<br>
files:<br>
<br>
- configure is not rerun (do we want that on every change to CMakeLists.txt?)<br></blockquote><div><br></div><div>Its annoying because it is so slow, but there really is no way around that is there? After all any change to any of the files in the project can mean include paths changed or flags. Does the generation of the json data also happen when just building the project? This is something that works relatively well in QtCreator, as it uses a X + CodeBlocks cmake generator and hence the codeblocks file gets updated on each build. Since thats something that I happen to do quite a bit whenever I chang ethe file QtCreator is up-to-date most of the time.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Furthermore, I wonder whether we should give "best-guess" results for<br>
defines/includes. Assume we add a new file to a project (and do not add it to<br>
CMakeLists.txt straight away). Currently, this will result in no include paths<br>
or defines and thus bad parsing. In KDE4 we used to jump through hoops in the<br>
C++ support (and maybe also in CMakeLists.txt?) to return the includes/defines<br>
for any neighboring file in the folder which has some information attached. I<br>
think we should add that behavior again, but inside the CMakeManager - what do<br>
you think?<br></blockquote><div><br></div><div>I'm not even sure you need to look at 'surrounding files', just taking the include dirs active for the directory should be sufficient in most cases. Or are KF5 cmake projects attaching the include dirs to targets these days? (Personally I'd still use include_directories() and add_definitions in many cases) I'm of course assuming the json data actually has this information for each subdir of the project.</div><div><br></div><div>Andreas </div></div></div></div>