libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.0rc2-2-g317cf52

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 23 Jan 2013 10:42:45 +0100 (CET)
The branch, master has been updated
       via  317cf526da9e6b5db777a97b247379b7e687f929 (commit)
      from  39042f17371589e295184e71b2c866f6bc0328aa (commit)


- Log -----------------------------------------------------------------
commit 317cf526da9e6b5db777a97b247379b7e687f929
Author: Michel Zou <xantares09@xxxxxxxxxxx>
Date:   Mon Jan 21 11:44:08 2013 +0100

    Fixed python wrapper being rebuilt every time.

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

Summary of changes:
 bindings/CMakeLists.txt |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 34de42d..7091cca 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -33,7 +33,7 @@ if(PYTHON_BINDINGS AND SWIG_FOUND AND PYTHONLIBS_FOUND AND 
PYTHONINTERP_FOUND)
         set(CMAKE_SWIG_FLAGS -DDOXYGEN=${DOXYGEN_FOUND})
 
         # Run doxygen to only generate the xml
-        add_custom_target ( doc_xml
+        add_custom_command ( OUTPUT ${CMAKE_BINARY_DIR}/doc/xml/ftdi_8c.xml
             COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/doc
             COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile.xml
             WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
@@ -41,12 +41,13 @@ if(PYTHON_BINDINGS AND SWIG_FOUND AND PYTHONLIBS_FOUND AND 
PYTHONINTERP_FOUND)
         )
 
         # generate .i from doxygen .xml
-        add_custom_target ( doc_i
+        add_custom_command ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ftdi1_doc.i
             COMMAND ${PYTHON_EXECUTABLE} 
${CMAKE_CURRENT_SOURCE_DIR}/doxy2swig.py -n
                 ${CMAKE_BINARY_DIR}/doc/xml/ftdi_8c.xml
                 ${CMAKE_CURRENT_BINARY_DIR}/ftdi1_doc.i
+            DEPENDS ${CMAKE_BINARY_DIR}/doc/xml/ftdi_8c.xml
         )
-        add_dependencies( doc_i doc_xml )
+        add_custom_target ( doc_i DEPENDS 
${CMAKE_CURRENT_BINARY_DIR}/ftdi1_doc.i )
         add_dependencies( ${SWIG_MODULE_ftdi1_REAL_NAME} doc_i )
         
     endif(DOCUMENTATION AND DOXYGEN_FOUND)


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.0rc2-2-g317cf52, libftdi-git <=