Skip to content

Commit e73651b

Browse files
authored
Merge pull request #3054 from stan-dev/sundials-targets
Don't set build and clean rules for SUNDIALS if external libs are used
2 parents 9f759e1 + 045073f commit e73651b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make/libraries

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ CPPLINT ?= $(MATH)lib/cpplint_1.4.5
2323
# Fortran bindings which we do not need for stan-math. Thus these targets
2424
# are ignored here. This convention was introduced with 4.0.
2525
##
26+
ifndef SUNDIALS_TARGETS
2627

2728
SUNDIALS_CVODES := $(patsubst %.c,%.o,\
2829
$(wildcard $(SUNDIALS)/src/cvodes/*.c) \
@@ -87,7 +88,7 @@ $(STAN_SUNDIALS_HEADERS) : $(SUNDIALS_TARGETS)
8788
clean-sundials:
8889
@echo ' cleaning sundials targets'
8990
$(RM) $(wildcard $(sort $(SUNDIALS_CVODES) $(SUNDIALS_IDAS) $(SUNDIALS_KINSOL) $(SUNDIALS_NVECSERIAL) $(SUNDIALS_TARGETS)))
90-
91+
endif
9192

9293
############################################################
9394
# TBB build rules

0 commit comments

Comments
 (0)