elastic / ebpf

Elastic's eBPF
Other
67 stars 11 forks source link

Prefer add_custom_command to add_custom_target #141

Closed nicholasberlin closed 2 years ago

nicholasberlin commented 2 years ago

Not sure why but add_custom_target always rebuilds non-GPL/Events/Lib/CMakeFiles/EbpfEvents.dir/EbpfEvents.c.o

Using a combo of add_custom_command and add_custom_target prevents the object file from being rebuilt when not necessary.