build(bindings): rename cmake test target
Some checks failed
Check Bindgen Output / check-bindgen (push) Waiting to run
CI / checks (push) Waiting to run
CI / sanitize (push) Failing after 14s
CI / build (push) Failing after 14s

CTest creates a test target which breaks the build when the parser is
included via FetchContent in a CMake project that uses CTest
This commit is contained in:
ObserverOfTime 2024-10-31 10:11:33 +02:00 committed by Amaan Qureshi
parent 500f4326d5
commit 02ff0af69c

View file

@ -53,6 +53,6 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-PARSER_NAME.pc"
install(TARGETS tree-sitter-PARSER_NAME
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
add_custom_target(test "${TREE_SITTER_CLI}" test
add_custom_target(ts-test "${TREE_SITTER_CLI}" test
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "tree-sitter test")