From 5976caf032726b59e92a482c25cb34cc5946c33b Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 3 Feb 2017 18:09:55 +0100 Subject: [PATCH] :zap: improved test compilation speed #445 --- test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index 0b235ba1..a8cbade8 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-%.cpp ../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) -DCATCH_CONFIG_MAIN $< -o $@ + @$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@ TEST_PATTERN ?= "*" TEST_PREFIX = ""