bulbazord wrote:

This should work if there is exactly one thing that depends on the output of 
this custom command. If multiple things start depending on the generated files, 
you may end up with weird results. See:

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 instances of the rule may conflict. Instead, use the 
> [add_custom_target()](https://cmake.org/cmake/help/latest/command/add_custom_target.html#command:add_custom_target)
>  command to drive the command and make the other targets depend on that one. 
> See the [Example: Generating Files for Multiple 
> Targets](https://cmake.org/cmake/help/latest/command/add_custom_command.html#example-generating-files-for-multiple-targets)
>  below.

https://github.com/llvm/llvm-project/pull/91254
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to