Merged in thduynguyen/gtsam-duy/fix/pyx_dependency (pull request #321)

close issue #354

re-cythonize if pyx file is updated.
release/4.3a0
Duy-Nguyen Ta 2018-10-14 14:27:19 +00:00 committed by Frank Dellaert
commit ba608204e2
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ function(cythonize target pyx_file output_lib_we output_dir include_dirs libs in
# Late dependency injection, to make sure this gets called whenever the interface header is updated # Late dependency injection, to make sure this gets called whenever the interface header is updated
# See: https://stackoverflow.com/questions/40032593/cmake-does-not-rebuild-dependent-after-prerequisite-changes # See: https://stackoverflow.com/questions/40032593/cmake-does-not-rebuild-dependent-after-prerequisite-changes
add_custom_command(OUTPUT ${generated_cpp} DEPENDS ${interface_header} APPEND) add_custom_command(OUTPUT ${generated_cpp} DEPENDS ${interface_header} ${pyx_file} APPEND)
if (NOT "${dependencies}" STREQUAL "") if (NOT "${dependencies}" STREQUAL "")
add_dependencies(${target}_pyx2cpp "${dependencies}") add_dependencies(${target}_pyx2cpp "${dependencies}")
endif() endif()