<div dir="ltr"><div><div><div>Hi,<br><br></div>In my project I have some source files that are generated at configure time.<br>Much like configure_file but using one execute_process call with an external executable,<br></div>then a second execute_process with cmake -E copy_if_different to avoid unnecessary rebuild.<br></div><div>The generated files (from the build folder) are then used as source file for some targets.<br></div><div><br></div><div>I recently upgraded to CMake >= 3.3 and I get a CMP0058 warning on some of the generated files.<br></div><div>What I don't understand is that:<br></div><div>- These files are not generated at build time but at configure time, why can't they just be seen as regular source files?<br></div><div>- I generate lots of these files, but only some (only a few proportionally) are listed in the warning.<br>  I haven't been able to see a pattern yet and the build.ninja seems to contain equivalent rules both for the warned and the not warned files.<br><br></div><div>What am I missing here?<br></div><div>Thanks<br></div></div>