diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2022-11-01 06:09:17 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2022-11-01 06:09:17 +0300 |
commit | db763141cc6300aaa4c918585d68469105b9466a (patch) | |
tree | c165e3e3d72c333275d488883eda99b938257806 | |
parent | 3f96558c35a2bd76ff7d34d07ebb72a2a78722ff (diff) | |
download | ydb-db763141cc6300aaa4c918585d68469105b9466a.tar.gz |
External build system generator release 4
Update tools: yexport
-rw-r--r-- | cmake/yandex_common.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/yandex_common.cmake b/cmake/yandex_common.cmake index d26aef5498..1c136d5804 100644 --- a/cmake/yandex_common.cmake +++ b/cmake/yandex_common.cmake @@ -7,8 +7,11 @@ add_compile_definitions(CATBOOST_OPENSOURCE=yes) function(target_ragel_lexers TgtName Key Src) SET(RAGEL_BIN ${CMAKE_BINARY_DIR}/bin/ragel) - get_filename_component(OutPath ${Src} NAME) - string(APPEND OutPath .cpp) + get_filename_component(OutPath ${Src} NAME_WLE) + get_filename_component(OutputExt ${OutPath} EXT) + if (OutputExt STREQUAL "") + string(APPEND OutPath .rl6.cpp) + endif() add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${OutPath} COMMAND Python3::Interpreter ${CMAKE_SOURCE_DIR}/build/scripts/run_tool.py -- ${RAGEL_BIN} ${RAGEL_FLAGS} ${ARGN} -o ${CMAKE_CURRENT_BINARY_DIR}/${OutPath} ${Src} |