squash! Makefile: run CMake with CMAKE_ARGS defined

Only if specified on command line.
This commit is contained in:
Daniel Hahler 2019-01-12 15:41:02 +01:00
parent 1535934ef9
commit 415c92a08a
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ cmake-build: $(BUILDDIR)/Makefile
$(ECHO) "Building…" $(ECHO) "Building…"
$(MAKE) -C $(BUILDDIR) $(MAKE) -C $(BUILDDIR)
# Run CMake always with CMAKE_ARGS defined. # Run CMake with CMAKE_ARGS defined on command line ("make CMAKE_ARGS=…").
ifdef CMAKE_ARGS ifeq ($(origin CMAKE_ARGS),command line)
.PHONY: $(BUILDDIR)/Makefile .PHONY: $(BUILDDIR)/Makefile
endif endif