From 28feac42492feb3a1f9f02d88cb410d137d2504f Mon Sep 17 00:00:00 2001 From: "drenfong.wang" Date: Wed, 23 Jan 2019 05:29:12 +0000 Subject: centos gcc-4.8.5 should commpile plugin with gnu99 Change-Id: Id642632b07ce6787af364a4ea576777e3453831a Signed-off-by: drenfong.wang --- src/plugins/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index dbff110..b347989 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -12,7 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +# set compiler options +set(CMAKE_EXPORT_COMPILE_COMMANDS 1) +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99") +set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O2") +set(CMAKE_C_FLAGS_DEBUG "-g -O0") set (CMAKE_INSTALL_LIBDIR "/usr/lib") + cmake_minimum_required(VERSION 2.8) project(sysrepo-vpp-plugins) -- cgit 1.2.3-korg