From 6462742d82ce462ac6acaec09f3306ae56a50762 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 28 Aug 2018 12:33:52 +0200 Subject: cmake: compile libs and plugins with -Wall Change-Id: I1edf236295eeb934943d6ca2aed04241e9cde362 Signed-off-by: Damjan Marion --- src/cmake/library.cmake | 1 + src/cmake/plugin.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake index 9ed53e9dba7..66b4dffe575 100644 --- a/src/cmake/library.cmake +++ b/src/cmake/library.cmake @@ -20,6 +20,7 @@ macro(add_vpp_library lib) ) add_library(${lib} SHARED ${ARG_SOURCES}) + target_compile_options(${lib} PRIVATE -Wall) # library deps if(ARG_LINK_LIBRARIES) diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake index 6cae5e06ab4..a0442394092 100644 --- a/src/cmake/plugin.cmake +++ b/src/cmake/plugin.cmake @@ -30,6 +30,7 @@ macro(add_vpp_plugin name) include/vpp_plugins/${name}/${dir}) endforeach() add_library(${plugin_name} SHARED ${PLUGIN_SOURCES} ${api_headers}) + target_compile_options(${plugin_name} PRIVATE -Wall) add_dependencies(${plugin_name} vpp_version_h api_headers) set_target_properties(${plugin_name} PROPERTIES PREFIX "" -- cgit 1.2.3-korg