From 361e8e95b4bd7c9ca18dea8c5edcd0d5efcf8a46 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 25 Dec 2016 15:23:53 -0800 Subject: [PATCH] Python: Make Python bindings depend on library --- src/platform/python/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/python/CMakeLists.txt b/src/platform/python/CMakeLists.txt index b3841c45d..adda679bd 100644 --- a/src/platform/python/CMakeLists.txt +++ b/src/platform/python/CMakeLists.txt @@ -5,6 +5,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in ${CMAKE_CURRENT_BINARY_DI add_custom_command(OUTPUT build/lib/${BINARY_NAME}/__init__.py COMMAND BINDIR=${CMAKE_CURRENT_BINARY_DIR}/.. ${PYTHON} ${CMAKE_CURRENT_BINARY_DIR}/setup.py build --build-base ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + DEPENDS ${BINARY_NAME} DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/setup.py DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/_builder.py)