build(bindings): rename cmake test target
CTest creates a test target which breaks the build when the parser is
included via FetchContent in a CMake project that uses CTest
(cherry picked from commit 02ff0af69c)
This commit is contained in:
parent
12bc174205
commit
89bd9e302e
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ 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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue