]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: do not assume ${CMAKE_GENERATOR} == make
authorKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 05:16:13 +0000 (13:16 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 07:45:07 +0000 (15:45 +0800)
commita0c6fb9d40ccba24bca5a93465a901c6dff1cc31
treecc89b0fe377a21c29beeb960ade5476a61a947f6
parent33d929373ee7a5ffc2cca9b94c3159bc336fbcbc
cmake: do not assume ${CMAKE_GENERATOR} == make

* modules/BuildDPDK.cmake: always use "make"
* modules/BuildSPDK.cmake: always use "make"
  DPDK only support "make". if user wants to use other generator than
  "make", we will fail to build DPDK support. so we should always use
  "make" here. and before using "make", we need to detect it.
* cmake/modules/BuildRocksDB.cmake: use cmake for build
* src/compressor/zstd/CMakeLists.txt: use cmake for build
  just use whatever generator use specifies, and use ${CMAKE_COMMAND}
  for building the specified target, no need to repeat
  ${CMAKE_GENERATOR} for building the target.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/BuildDPDK.cmake
cmake/modules/BuildRocksDB.cmake
cmake/modules/BuildSPDK.cmake
src/compressor/zstd/CMakeLists.txt