From 6824ee0487cb6215c193ffca065e8b9d1239f251 Mon Sep 17 00:00:00 2001 From: cbeall Date: Thu, 6 Apr 2017 17:35:43 -0700 Subject: [PATCH] Fix link error for gtsam_unstable cython wrapper --- cython/gtsam_unstable/setup.py.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cython/gtsam_unstable/setup.py.in b/cython/gtsam_unstable/setup.py.in index fe6a02fbd..bd3202c8d 100644 --- a/cython/gtsam_unstable/setup.py.in +++ b/cython/gtsam_unstable/setup.py.in @@ -20,7 +20,8 @@ setup( "${Boost_INCLUDE_DIR}" ] + eigency.get_includes(include_eigen=False), libraries=['gtsam', 'gtsam_unstable'], - library_dirs=["${GTSAM_DIR}/../../"], + library_dirs = ["${CMAKE_BINARY_DIR}/gtsam", + "${CMAKE_BINARY_DIR}/gtsam_unstable"], language="c++", extra_compile_args="${CMAKE_CXX_FLAGS}".split(), extra_link_args="${CMAKE_SHARED_LINKER_FLAGS}".split()))