Merge pull request #2567 from blueyed/cmake-args
Makefile: run CMake with CMAKE_ARGS defined
This commit is contained in:
commit
8fe06f95d0
5
Makefile
5
Makefile
|
@ -14,6 +14,11 @@ cmake-build: $(BUILDDIR)/Makefile
|
||||||
$(ECHO) "Building…"
|
$(ECHO) "Building…"
|
||||||
$(MAKE) -C $(BUILDDIR)
|
$(MAKE) -C $(BUILDDIR)
|
||||||
|
|
||||||
|
# Run CMake with CMAKE_ARGS defined on command line ("make CMAKE_ARGS=…").
|
||||||
|
ifeq ($(origin CMAKE_ARGS),command line)
|
||||||
|
.PHONY: $(BUILDDIR)/Makefile
|
||||||
|
endif
|
||||||
|
|
||||||
$(BUILDDIR)/Makefile:
|
$(BUILDDIR)/Makefile:
|
||||||
$(ECHO) "Creating build directory and running cmake in it. You can also run CMake directly, if you want."
|
$(ECHO) "Creating build directory and running cmake in it. You can also run CMake directly, if you want."
|
||||||
$(ECHO)
|
$(ECHO)
|
||||||
|
|
Loading…
Reference in New Issue