summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-05-15 09:51:45 -0400
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-18 19:47:21 +0000
commitb1a7f68b220ebc8d2de7128dae7b471fd4e46873 (patch)
treed66497e9d358bb79455b40e62a78724418d8f53b
parentacf0bd5567884abd1ad19804aa0fabe03fd43a88 (diff)
g2: fix the g2 build for Ubuntu 20.04
Shut off deprecated declaration warnings Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I65ea4bbc4d5ee5a11d4e8f554f414f57944c7e1c (cherry picked from commit 18a86c6e6069cbc9a0d2294ebb7f7cca5f616f84)
-rw-r--r--src/tools/g2/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/g2/CMakeLists.txt b/src/tools/g2/CMakeLists.txt
index 36dd6e9e625..e8011912e9e 100644
--- a/src/tools/g2/CMakeLists.txt
+++ b/src/tools/g2/CMakeLists.txt
@@ -15,6 +15,7 @@ option(VPP_BUILD_G2 "Build g2 tool." OFF)
if(VPP_BUILD_G2)
find_package(GTK2 COMPONENTS gtk)
if(GTK2_FOUND)
+ set(CMAKE_C_FLAGS "-Wno-deprecated-declarations ${CMAKE_C_FLAGS}")
include_directories(${GTK2_INCLUDE_DIRS})
add_vpp_executable(g2
SOURCES
@@ -29,8 +30,6 @@ if(VPP_BUILD_G2)
view1.c
LINK_LIBRARIES vppinfra Threads::Threads m ${GTK2_LIBRARIES}
- NO_INSTALL
)
endif()
endif()
-