Fix race during build of python bindings
authorFabian Vogt <fvogt@suse.de>
Tue, 29 Aug 2023 12:57:27 +0000 (14:57 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 29 Aug 2023 13:03:03 +0000 (15:03 +0200)
commit7017c0dce1e251108d1bc8a41bfeef3ff9a89ba6
tree289b76d22662fe7e8e2e267867f59f8b9a919d43
parentb5b8fab6063ad90bb5ef05a72708ecde1796bc81
Fix race during build of python bindings

The CMake documentation says about add_custom_command that the output must
not be used as dependency in more than one target, but this was the case
here: Both the doc_i target and the SWIG target depended on ftdi1_doc.i.
Make the SWIG target depend on doc_i instead.

This fixes that ftdi1_doc.i was built twice with parallel builds, leading
to random errors.

Signed-off-by: Fabian Vogt <fvogt@suse.de>
python/CMakeLists.txt