]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: BuildDPDK: use ${CMAKE_MAKE_PROGRAM} when appropriate 19017/head
authorKefu Chai <kchai@redhat.com>
Tue, 21 Nov 2017 09:45:44 +0000 (17:45 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 21 Nov 2017 09:47:17 +0000 (17:47 +0800)
DPDK requires GNU Make. see
spdk/dpdk/doc/guides/freebsd_gsg/build_dpdk.rst. so, we should use the
configured make program to do the job.

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

index 1b824ae5b927aaed8e10146af2f5d21e8c34af52..8b28cf97ced7ca9b442919e207f8541723f9167c 100644 (file)
@@ -51,7 +51,7 @@ function(do_build_dpdk dpdk_dir)
   set(target "${arch}-${machine_tmpl}-${execenv}-${toolchain}")
 
   execute_process(
-    COMMAND make showconfigs
+    COMMAND ${CMAKE_MAKE_PROGRAM} showconfigs
     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/spdk/dpdk
     OUTPUT_VARIABLE supported_targets
     OUTPUT_STRIP_TRAILING_WHITESPACE)
@@ -59,7 +59,8 @@ function(do_build_dpdk dpdk_dir)
   list(FIND supported_targets ${target} found)
   if(found EQUAL -1)
     message(FATAL_ERROR "not able to build DPDK support: "
-      "unsupported target \"${target}\"")
+      "unsupported target. "
+      "\"${target}\" not listed in ${supported_targets}")
   endif()
 
   include(ExternalProject)