mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Makefile: fix invoking cmake in the build dir (#2078)
`"(@D)"` is the dir of the target, i.e. "build" for BUILDDIR=build, which results in calling `cmake build ..`. cmake appears to ignore the "build" in this case, and works the same way without it. Instead of ".." this patch uses `$(CURDIR)`, which is the absolute path to the source dir, which is relevant in case `BUILDDIR` is not just a direct subdirectory.
This commit is contained in:
parent
5ac6db5696
commit
1ca3fff86c
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -17,7 +17,7 @@ $(BUILDDIR)/Makefile:
|
|||
$(ECHO)
|
||||
mkdir -p $(BUILDDIR)
|
||||
$(ECHO) "Running cmake…"
|
||||
cd $(BUILDDIR) && cmake $(CMAKE_ARGS) "$(@D)" ..
|
||||
cd $(BUILDDIR) && cmake $(CMAKE_ARGS) "$(CURDIR)"
|
||||
|
||||
cmake-build: $(BUILDDIR)/Makefile
|
||||
$(ECHO) "Building…"
|
||||
|
|
Loading…
Reference in a new issue