1
0
mirror of https://github.com/nlohmann/json synced 2024-11-27 14:20:07 +00:00

improved test compilation speed #445

This commit is contained in:
Niels Lohmann 2017-02-03 18:09:55 +01:00
parent 16af771277
commit 5976caf032

View File

@ -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 = ""