Avoid wrong OPENAPI_DEF variable definition
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 15 Aug 2017 17:04:50 +0000 (19:04 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 16 Aug 2017 16:40:34 +0000 (18:40 +0200)
Change-Id: I6b38cc6af5a3cb5b86b445149345cd65082ccc8b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
cmake/cmake.d/02-macros.cmake

index aa7d33d..a085738 100644 (file)
@@ -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