From aaea11dd832d3f3cae67b7c28c5a9bb9812e195a Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Mon, 24 Jul 2017 14:46:41 -0400 Subject: [PATCH] deal with empty dependency list --- cmake/GtsamCythonWrap.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/GtsamCythonWrap.cmake b/cmake/GtsamCythonWrap.cmake index a8793a4a9..7f98356d3 100644 --- a/cmake/GtsamCythonWrap.cmake +++ b/cmake/GtsamCythonWrap.cmake @@ -127,7 +127,9 @@ function(wrap_library_cython interface_header generated_files_path extra_imports VERBATIM WORKING_DIRECTORY ${generated_files_path}/../) add_custom_target(cython_wrap_${module_name}_pyx ALL DEPENDS ${generated_pyx}) - add_dependencies(cython_wrap_${module_name}_pyx ${dependencies}) + if(NOT ${dependencies} STREQUAL "") + add_dependencies(cython_wrap_${module_name}_pyx ${dependencies}) + endif() message(STATUS "Cythonize and build ${module_name}.pyx") get_property(include_dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)