Re: [cmake-developers] Race between ADD_CUSTOM_COMMAND()

2018-07-04 Thread Oleh Kravchenko
Hi Nils, Thank you for your answer! In my case I can't use target for this. There are any hard limits which block fixing of this behaviour? By the way, can I have two and more targets in one build directory? 04.07.18 20:19, Nils Gladitz пише: > On 04.07.2018 18:52, Oleh Kravchenko wrote: > >>

Re: [cmake-developers] Race between ADD_CUSTOM_COMMAND()

2018-07-04 Thread Nils Gladitz
On 04.07.2018 18:52, Oleh Kravchenko wrote: Hello CMake Developers! Looks like I found interesting bug in CMake: - ADD_CUSTOM_TARGET() always creates Makefile rule for ADD_CUSTOM_COMMAND(). - As result build simetimes failed if specified -jN for make. FWIW this is documented behavior (so not

[cmake-developers] Race between ADD_CUSTOM_COMMAND()

2018-07-04 Thread Oleh Kravchenko
Hello CMake Developers! Looks like I found interesting bug in CMake: - ADD_CUSTOM_TARGET() always creates Makefile rule for ADD_CUSTOM_COMMAND(). - As result build simetimes failed if specified -jN for make. Please find attached simple project which reproduce the problem. > [ 12%] Generate