message: add MPI dependencies to test binaries
diff: @@ -26,9 +26,6 @@ path_separator :
  #### MPI TEST #####
  ifdef STAN_MPI
  GTEST_CXXFLAGS += $(CXXFLAGS_MPI)
  - MPI_TESTS := $(patsubst src/%.cpp,%$(EXE),$(shell find src/test -name *mpi_*test.cpp))
  - $(MPI_TESTS): LDFLAGS += $(LDFLAGS_MPI)
  - $(MPI_TESTS): $(LIBMPI)
  endif
  ##
  @@ -84,9 +81,9 @@ ALL_TESTS = $(shell find src/test -type f -name '*_test.cpp')
  ALL_TEST_EXECUTABLES = $(patsubst src/%.cpp,%$(EXE),$(ALL_TESTS))
  .PRECIOUS: test/%.o
  -test/%$(EXE) : test/%.o $(LIBGTEST) $(LIBSUNDIALS)
  +test/%$(EXE) : test/%.o $(LIBGTEST) $(LIBSUNDIALS) $(LIBMPI)
  @mkdir -p $(dir $@)
  - $(LINK.cc) -O$O $(GTEST_MAIN) $< $(GTEST_CXXFLAGS) $(OUTPUT_OPTION) $(LIBGTEST) $(LIBSUNDIALS)
  + $(LINK.cc) $< -O$O $(GTEST_MAIN) $(GTEST_CXXFLAGS) $(OUTPUT_OPTION) $(LIBGTEST) $(LIBSUNDIALS) $(LDFLAGS_MPI)
  ifeq ($(strip $(findstring src/test/,$(MAKECMDGOALS))), )
  $(WINE) $@ --gtest_output="xml:$(basename $@).xml"
  endif
  