This commit revises Protobuf_Generate to reset internal variables before
using them.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
get_filename_component(abs_output_dir ${OUTPUT_DIR} ABSOLUTE)
get_filename_component(abs_proto_dir ${PROTO_DIR} ABSOLUTE)
+ # Let's reset variables before using them
+ # NOTE This DOES NOT AFFECT variables in the parent scope
+ unset(PROTO_FILES)
+ unset(OUTPUT_FILES)
+
foreach(proto ${ARGN})
get_filename_component(fil "${proto}" NAME)
get_filename_component(dir "${proto}" DIRECTORY)