* BuildDPDK.cmake, BuildSPDK.cmake:
* give priority to build with gmake
* throw error if make not found
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
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.
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)")