summaryrefslogtreecommitdiffstats
path: root/src/cmake/api.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake/api.cmake')
-rw-r--r--src/cmake/api.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmake/api.cmake b/src/cmake/api.cmake
index 693c55d86b7..922c83a8b4d 100644
--- a/src/cmake/api.cmake
+++ b/src/cmake/api.cmake
@@ -26,7 +26,7 @@ function(vpp_generate_api_c_header file)
add_custom_command (OUTPUT ${output_name}
COMMAND mkdir -p ${output_dir}
COMMAND ${VPP_APIGEN}
- ARGS ${includedir} --includedir ${CMAKE_SOURCE_DIR} --input ${CMAKE_CURRENT_SOURCE_DIR}/${file} --output ${output_name}
+ ARGS ${includedir} --includedir ${CMAKE_SOURCE_DIR} --input ${CMAKE_CURRENT_SOURCE_DIR}/${file} --outputdir ${output_dir} --output ${output_name}
DEPENDS ${VPP_APIGEN} ${CMAKE_CURRENT_SOURCE_DIR}/${file}
COMMENT "Generating API header ${output_name}"
)