Skip to content

Commit 16d884b

Browse files
committed
Do not link boost numpy library if python is disabled.
1 parent 2158758 commit 16d884b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libharp/math/Makefile.am

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ noinst_LTLIBRARIES = libharpmath.la
2525
libharpmath_la_includedir = $(includedir)/harp
2626
libharpmath_la_include_HEADERS = harp/math.hpp harp/linalg.hpp
2727
libharpmath_la_SOURCES = harp_linalg.cpp harp_math.cpp
28-
libharpmath_la_LIBADD = \
29-
$(top_builddir)/src/libharp/math/boost_numpy/libboost_numpy.la
28+
libharpmath_la_LIBADD =
29+
30+
if HAVE_AM_PYTHON
31+
libharpmath_la_LIBADD += $(top_builddir)/src/libharp/math/boost_numpy/libboost_numpy.la
32+
endif
3033

3134
install-data-local:
3235
@$(mkinstalldirs) $(DESTDIR)$(includedir)/boost; \

0 commit comments

Comments
 (0)