From 1cfdc2a7537d18e21651f6b47d25e8668a4396ca Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 4 Feb 2017 08:25:55 +0100 Subject: [PATCH] :bug: fixed test compilation --- test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index a8cbade8..8f4e215f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -71,9 +71,9 @@ json_unit: $(OBJECTS) ../src/json.hpp thirdparty/catch/catch.hpp # individual test cases ############################################################################## -test-%: src/unit.o src/unit-%.o ../src/json.hpp thirdparty/catch/catch.hpp +test-%: src/unit-%.o src/unit.o ../src/json.hpp thirdparty/catch/catch.hpp @echo "[CXXLD] $@" - @$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@ + @$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $< src/unit.o -o $@ TEST_PATTERN ?= "*" TEST_PREFIX = ""