summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/vnet/CMakeLists.txt b/src/vnet/CMakeLists.txt
index 1ae56183116..ec9fc2dcb67 100644
--- a/src/vnet/CMakeLists.txt
+++ b/src/vnet/CMakeLists.txt
@@ -424,7 +424,7 @@ set(VNET_SRCS
vxlan/vxlan.c
)
-set (VNET_API_FILES
+vpp_add_api_files(vnet_api_headers
vxlan-gpe/vxlan_gpe.api
ip/ip.api
ip/rd_cp.api
@@ -475,13 +475,6 @@ set (VNET_API_FILES
bfd/bfd.api
)
-set(VNET_API_HDRS)
-foreach (file ${VNET_API_FILES})
- vpp_generate_api_header(${file})
- list(APPEND VNET_API_HDRS ${file}.h)
-endforeach()
-add_custom_target(vnet_api_headers DEPENDS ${VNET_API_HDRS})
-
add_library(vnet SHARED ${VNET_SRCS})
vpp_library_set_multiarch_sources(vnet