diff --git a/mod/box/CMakeLists.txt b/mod/box/CMakeLists.txt index 92a33f118cdbc2f6cb7b5b369a0dca3a8f656d0c..61214958604ea220bb43a528deedaa5252d8d20b 100644 --- a/mod/box/CMakeLists.txt +++ b/mod/box/CMakeLists.txt @@ -1,11 +1,12 @@ -add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/mod/box/memcached.m +add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/mod/box/memcached-grammar.m WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - COMMAND ${RAGEL} -G2 mod/box/memcached.rl -o mod/box/memcached.m - DEPENDS ${CMAKE_SOURCE_DIR}/mod/box/memcached.rl) -# Do not clean memcached.m in 'make clean'. + COMMAND ${RAGEL} -G2 mod/box/memcached-grammar.rl + -o mod/box/memcached-grammar.m + DEPENDS ${CMAKE_SOURCE_DIR}/mod/box/memcached-grammar.rl) +# Do not clean memcached-grammar.m in 'make clean'. set_property(DIRECTORY PROPERTY CLEAN_NO_CUSTOM 1) -set_source_files_properties(memcached.m +set_source_files_properties(memcached-grammar.m PROPERTIES COMPILE_FLAGS "-Wno-uninitialized") -tarantool_module("box" index.m box.m memcached.m) +tarantool_module("box" index.m box.m memcached-grammar.m) diff --git a/mod/box/memcached.m b/mod/box/memcached-grammar.m similarity index 100% rename from mod/box/memcached.m rename to mod/box/memcached-grammar.m diff --git a/mod/box/memcached.rl b/mod/box/memcached-grammar.rl similarity index 100% rename from mod/box/memcached.rl rename to mod/box/memcached-grammar.rl