summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2014-01-24 19:40:19 +0000
committerAndrew Stitcher <astitcher@apache.org>2014-01-24 19:40:19 +0000
commit921af2ee305b05b716c308174b61a6d19f0d7207 (patch)
tree5d4f49d188ccc6f6661af8f1ebb5e6566c6a05b5 /cpp/src
parent6516d329810ba477ea445c639b9d778a733d14ab (diff)
downloadqpid-python-921af2ee305b05b716c308174b61a6d19f0d7207.tar.gz
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! git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1561130 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/tests/CMakeLists.txt b/cpp/src/tests/CMakeLists.txt
index 74a3463920..a4093c82a2 100644
--- a/cpp/src/tests/CMakeLists.txt
+++ b/cpp/src/tests/CMakeLists.txt
@@ -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