]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: do not use $(MAKE) in Buildpmem.cmake
authorKefu Chai <kchai@redhat.com>
Thu, 2 Apr 2020 04:15:21 +0000 (12:15 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 3 Apr 2020 05:07:51 +0000 (13:07 +0800)
commit6fca5e7d373ac73328a09d57e01fe1db7d59156b
tree138a606d9f0848bd8c087077ec0098f51756322e
parent8f7fae7a78dbdd416d068a60588d7c2aa93c5586
cmake: do not use $(MAKE) in Buildpmem.cmake

we cannot assume that we are using `make` as the cmake generatator,
for instance, if ninja is used, `$(MAKE)` won't be substituted by ninja.
so we need to check if Make is used as generator, if that's the case, we
can just use `$(MAKE)` so we can benefit from the job control of `make`,
otherwise, `make` is used, because currently, PMDK uses Makefile to
build.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Buildpmem.cmake