From 92bce6034ead88d1a11b5bdacd975a9d4cbec795 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Tue, 29 Jan 2019 16:39:50 +0100 Subject: [HICN-10] Treat warning as errors in compilation during verify jobs. Change-Id: Iab6deb14157f81c9f2f8ba6762e93e9860b108bd Signed-off-by: Mauro Sardara --- CMakeLists.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a362a4005..29fa1700b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,13 +39,17 @@ set(LIBTRANSPORT_HEADER_FILES) set(SUBDIRS lib hicn-light libtransport utils) +add_compile_options(-Wall -Werror) + if (BUILD_VPP_PLUGIN AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" ) -list(APPEND SUBDIRS - hicn-plugin -) -list(APPEND HICN_BINARY_API_INCLUDE_DIRS - ${PROJECT_BINARY_DIR}/hicn-plugin - ${PROJECT_BINARY_DIR}/hicn-plugin/vpp_plugins) + list(APPEND SUBDIRS + hicn-plugin + ) + + list(APPEND HICN_BINARY_API_INCLUDE_DIRS + ${PROJECT_BINARY_DIR}/hicn-plugin + ${PROJECT_BINARY_DIR}/hicn-plugin/vpp_plugins + ) endif() foreach(dir ${SUBDIRS}) -- cgit 1.2.3-korg