From 16d884b572674adb0228b63e5c79a6840252a3b4 Mon Sep 17 00:00:00 2001 From: Theodore Kisner Date: Thu, 18 Feb 2016 09:35:44 -0800 Subject: [PATCH] Do not link boost numpy library if python is disabled. --- src/libharp/math/Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libharp/math/Makefile.am b/src/libharp/math/Makefile.am index fa9dfee..fc5f468 100644 --- a/src/libharp/math/Makefile.am +++ b/src/libharp/math/Makefile.am @@ -25,8 +25,11 @@ noinst_LTLIBRARIES = libharpmath.la libharpmath_la_includedir = $(includedir)/harp libharpmath_la_include_HEADERS = harp/math.hpp harp/linalg.hpp libharpmath_la_SOURCES = harp_linalg.cpp harp_math.cpp -libharpmath_la_LIBADD = \ -$(top_builddir)/src/libharp/math/boost_numpy/libboost_numpy.la +libharpmath_la_LIBADD = + +if HAVE_AM_PYTHON + libharpmath_la_LIBADD += $(top_builddir)/src/libharp/math/boost_numpy/libboost_numpy.la +endif install-data-local: @$(mkinstalldirs) $(DESTDIR)$(includedir)/boost; \