From 89bd9e302e09b6eca68cac0da17180f141edd787 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Thu, 31 Oct 2024 10:11:33 +0200 Subject: [PATCH] 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 02ff0af69ca762c5b86b07155ddd2cd8d4a95c97) --- cli/src/templates/cmakelists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/templates/cmakelists.txt b/cli/src/templates/cmakelists.txt index 24f2507d..d3b7024b 100644 --- a/cli/src/templates/cmakelists.txt +++ b/cli/src/templates/cmakelists.txt @@ -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")