qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1561130 - /qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt
Date Fri, 24 Jan 2014 19:40:19 GMT
Author: astitcher
Date: Fri Jan 24 19:40:19 2014
New Revision: 1561130

URL: http://svn.apache.org/r1561130
Log:
NO-JIRA: Make the python test install depend on the python files.
- So just after the previous checkin Gordon changed the python
  code. This made me think that the python install needs to have
  the dependencies!

Modified:
    qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt

Modified: qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt?rev=1561130&r1=1561129&r2=1561130&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt Fri Jan 24 19:40:19 2014
@@ -307,10 +307,13 @@ endif (BUILD_SASL)
 set (python_bld ${CMAKE_CURRENT_BINARY_DIR}/python)
 set (python_src ${CMAKE_SOURCE_DIR}/../python)
 
-# If we want this to automatically run when we change the python library we will need to
-# add some explicit dependencies on the source python files
+# This will not pick up added or deleted python files
+# In that case you need to rerun CMake
+file(GLOB_RECURSE python_files ${python_src}/*.py)
+
 add_custom_command(
     OUTPUT ${python_bld}
+    DEPENDS ${python_files}
     COMMAND ${PYTHON_EXECUTABLE}
         setup.py
         build --build-base=${python_bld}/build



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message