diff options
Diffstat (limited to 'cmake.deps/cmake/TreesitterParserCMakeLists.txt')
-rw-r--r-- | cmake.deps/cmake/TreesitterParserCMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake.deps/cmake/TreesitterParserCMakeLists.txt b/cmake.deps/cmake/TreesitterParserCMakeLists.txt index 9bdf500aa7..bdb3f05c11 100644 --- a/cmake.deps/cmake/TreesitterParserCMakeLists.txt +++ b/cmake.deps/cmake/TreesitterParserCMakeLists.txt @@ -1,7 +1,12 @@ cmake_minimum_required(VERSION 3.10) +# Can be removed once minimum version is at least 3.15 +if(POLICY CMP0092) + cmake_policy(SET CMP0092 NEW) +endif() project(parser C) -set(CMAKE_C_STANDARD 99) +add_compile_options(-w) + file(GLOB source_files src/*.c) add_library(parser |