Skip to content

Commit

Permalink
⚡ improved test compilation speed #445
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Feb 3, 2017
1 parent 16af771 commit 5976caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 5976caf

Please sign in to comment.