aboutsummaryrefslogtreecommitdiff
path: root/cmake.deps/cmake/TreesitterParserCMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cmake.deps/cmake/TreesitterParserCMakeLists.txt')
-rw-r--r--cmake.deps/cmake/TreesitterParserCMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmake.deps/cmake/TreesitterParserCMakeLists.txt b/cmake.deps/cmake/TreesitterParserCMakeLists.txt
index 54bc35fb8a..be07f00a37 100644
--- a/cmake.deps/cmake/TreesitterParserCMakeLists.txt
+++ b/cmake.deps/cmake/TreesitterParserCMakeLists.txt
@@ -1,10 +1,12 @@
cmake_minimum_required(VERSION 3.10)
-# some parsers have c++ scanner, problem?
-project(parser C) # CXX
+project(parser C)
+
+set(CMAKE_C_STANDARD 99)
+file(GLOB source_files src/*.c)
add_library(parser
MODULE
- src/parser.c
+ ${source_files}
)
set_target_properties(
parser