Update CMakeLists.txt

This commit is contained in:
Andrea Cavalli 2020-10-25 17:35:50 +01:00
parent d3ff817f83
commit 14b8f24954

View File

@ -158,7 +158,7 @@ if (NOT CMAKE_CROSSCOMPILING)
add_custom_target(generate_secret_api_tlo
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ./tl-parser/bin/tl-parser -v -e scheme/secret_api.tlo scheme/secret_api.tl
COMMAND ${TL_PARSER_BIN} -v -e scheme/secret_api.tlo scheme/secret_api.tl
COMMENT "Build tl-parser"
DEPENDS scheme/secret_api.tl
)
@ -166,7 +166,7 @@ if (NOT CMAKE_CROSSCOMPILING)
add_custom_target(generate_telegram_api_tlo
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ./tl-parser/bin/tl-parser -v -e scheme/telegram_api.tlo scheme/telegram_api.tl
COMMAND ${TL_PARSER_BIN} -v -e scheme/telegram_api.tlo scheme/telegram_api.tl
COMMENT "Build tl-parser"
DEPENDS scheme/telegram_api.tl
)
@ -174,7 +174,7 @@ if (NOT CMAKE_CROSSCOMPILING)
add_custom_target(generate_td_api_tlo
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ./tl-parser/bin/tl-parser -v -e scheme/td_api.tlo scheme/td_api.tl
COMMAND ${TL_PARSER_BIN} -v -e scheme/td_api.tlo scheme/td_api.tl
COMMENT "Build tl-parser"
DEPENDS scheme/td_api.tl
)