disable verbose DPDK builds by default.
@@ -30,6 +30,10 @@ else(CMAKE_BUILD_TYPE MATCHES "Rel")
set(DPDK_EXTRA_CFLAGS "-fPIC -O0 -g3")
endif(CMAKE_BUILD_TYPE MATCHES "Rel")
+if(CMAKE_VERBOSE_MAKEFILE)
+ set(DPDK_VERBOSE_MAKEFILE "V=1")
+endif(CMAKE_VERBOSE_MAKEFILE)
+
# warning: the same build flags have to be passed to both the build command
# and the install command (or `EXTRA_CFLAGS` could be wiped out during
# install).
@@ -37,8 +41,8 @@ ExternalProject_Add(dpdk
PREFIX ${DPDK_BINARY_DIR}
SOURCE_DIR ${DPDK_SOURCE_DIR}
CONFIGURE_COMMAND make -C ${DPDK_SOURCE_DIR} config T=${DPDK_TARGET}
- BUILD_COMMAND make -C ${DPDK_SOURCE_DIR} T=${DPDK_TARGET} DESTDIR=${DPDK_INSTALL_DIR} EXTRA_CFLAGS=${DPDK_EXTRA_CFLAGS} V=1
- INSTALL_COMMAND make -C ${DPDK_SOURCE_DIR} install T=${DPDK_TARGET} DESTDIR=${DPDK_INSTALL_DIR} EXTRA_CFLAGS=${DPDK_EXTRA_CFLAGS} V=1
+ BUILD_COMMAND make -C ${DPDK_SOURCE_DIR} T=${DPDK_TARGET} DESTDIR=${DPDK_INSTALL_DIR} EXTRA_CFLAGS=${DPDK_EXTRA_CFLAGS} ${DPDK_VERBOSE_MAKEFILE}
+ INSTALL_COMMAND make -C ${DPDK_SOURCE_DIR} install T=${DPDK_TARGET} DESTDIR=${DPDK_INSTALL_DIR} EXTRA_CFLAGS=${DPDK_EXTRA_CFLAGS} ${DPDK_VERBOSE_MAKEFILE}
)
# configure DPDK options.
