diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-08-15 19:04:50 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:47 +0200 |
commit | ad070faba5e3efda30e21a6c3b0870031ed0e625 (patch) | |
tree | 902e5a86c735795a6abbc37e0217a14f43dbfb95 /cmake | |
parent | 70c55b791e5b40c9e2699e364de9a81c8c8f0f75 (diff) |
Avoid wrong OPENAPI_DEF variable definition
Change-Id: I6b38cc6af5a3cb5b86b445149345cd65082ccc8b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/cmake.d/02-macros.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/cmake.d/02-macros.cmake b/cmake/cmake.d/02-macros.cmake index aa7d33d..a085738 100644 --- a/cmake/cmake.d/02-macros.cmake +++ b/cmake/cmake.d/02-macros.cmake @@ -70,6 +70,12 @@ macro(add_input_files INPUT_FILES) COMMAND cp -r ${INPUT_FILES} ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME} ) endmacro() + +# Set the name of the OPENAPI definition JSON file for binding v2 +macro(set_openapi_filename openapi_filename) + set(OPENAPI_DEF ${openapi_filename} CACHE STRING "OpenAPI JSON file name used to generate binding header file before building a binding v2 target.") +endmacro() + # Pre-packaging macro(project_targets_populate) # Default Widget default directory |