]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake/modules: look for GNU make first instead of BSD make 31781/head
authorDeepika Upadhyay <dupadhya@redhat.com>
Fri, 22 Nov 2019 14:21:55 +0000 (19:51 +0530)
committerDeepika Upadhyay <dupadhya@redhat.com>
Mon, 25 Nov 2019 07:46:04 +0000 (13:16 +0530)
  * BuildDPDK.cmake, BuildSPDK.cmake:
      * give priority to build with gmake
      * throw error if make not found

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
cmake/modules/BuildDPDK.cmake
cmake/modules/BuildSPDK.cmake

index f858bedc91c116345405761cb67159d8f702e9bf..2c21fd9d0b39deb5d11935372ac90906e5bfb4ea 100644 (file)
@@ -1,5 +1,8 @@
 function(do_build_dpdk dpdk_dir)
-  find_program (MAKE_EXECUTABLE NAMES make gmake)
+  find_program(MAKE_EXECUTABLE NAMES gmake make)
+  if(NOT MAKE_EXECUTABLE)
+    message(FATAL_ERROR "Can't find make")
+  endif()
   # mk/machine/native/rte.vars.mk
   # rte_cflags are extracted from mk/machine/${machine}/rte.vars.mk
   # only 3 of them have -march=<arch> defined, so copying them here.
index 2522ccffa476954a66ad0d6fd5be05d6c3aeb94c..2e9b31b8d0d2e7c83adb4521d27006538411d1d5 100644 (file)
@@ -10,7 +10,10 @@ macro(build_spdk)
     find_package(uuid REQUIRED)
   endif()
 
-  find_program (MAKE_EXECUTABLE NAMES make gmake)
+  find_program(MAKE_EXECUTABLE NAMES gmake make)
+  if(NOT MAKE_EXECUTABLE)
+    message(FATAL_ERROR "Can't find make")
+  endif()
   if(CMAKE_MAKE_PROGRAM MATCHES "make")
     # try to inherit command line arguments passed by parent "make" job
     set(make_cmd "$(MAKE)")