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: > >> 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 exactly a bug): > https://cmake.org/cmake/help/latest/command/add_custom_command.html > > "Do not list the output in more than one independent target that may build in > parallel or the two instances of the rule may conflict[...]". > > Nils -- Best regards, Oleh Kravchenko
signature.asc
Description: OpenPGP digital signature
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers