libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.5-14-g7017c0d

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 29 Aug 2023 15:03:35 +0200 (CEST)
The branch, master has been updated
       via  7017c0dce1e251108d1bc8a41bfeef3ff9a89ba6 (commit)
      from  b5b8fab6063ad90bb5ef05a72708ecde1796bc81 (commit)


- Log -----------------------------------------------------------------
commit 7017c0dce1e251108d1bc8a41bfeef3ff9a89ba6
Author: Fabian Vogt <fvogt@xxxxxxx>
Date:   Tue Aug 29 14:57:27 2023 +0200

    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@xxxxxxx>

-----------------------------------------------------------------------

Summary of changes:
 python/CMakeLists.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 5b6f420..1a8142b 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories ( ${CMAKE_CURRENT_BINARY_DIR}/../src )
 if ( DOCUMENTATION )
   set(CMAKE_SWIG_FLAGS -DDOXYGEN=${DOXYGEN_FOUND})
   # manually add dependency for new cmake / swig versions
-  set_property(SOURCE ftdi1.i PROPERTY DEPENDS ftdi1_doc.i)
+  set_property(SOURCE ftdi1.i PROPERTY DEPENDS doc_i)
 endif()
 if(NOT CMAKE_VERSION VERSION_LESS 3.8.0)
   swig_add_library ( ftdi1 LANGUAGE python SOURCES ftdi1.i )


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.5-14-g7017c0d, libftdi-git <=