aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-03-05 15:02:01 -0500
committerGitHub <noreply@github.com>2022-03-05 15:02:01 -0500
commit8ed9c84481a7d0df0708d11ffa538f832591240f (patch)
tree358f7d1ee3932951aebf45c78f20a6238ea9292e
parentc365de1d22de3e70e785267fe19cb9c43b42d355 (diff)
parenteb4ae060bc00e8ea5dc8a7c6e78647e452d0feeb (diff)
downloadrneovim-8ed9c84481a7d0df0708d11ffa538f832591240f.tar.gz
rneovim-8ed9c84481a7d0df0708d11ffa538f832591240f.tar.bz2
rneovim-8ed9c84481a7d0df0708d11ffa538f832591240f.zip
Merge pull request #17597 from dundargoc/build/cmake/fix-warnings
fix cmake warnings
-rw-r--r--CMakeLists.txt3
-rw-r--r--third-party/cmake/BuildTreesitterParsers.cmake1
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eae2d75e3f..767bd797bc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,9 @@ endif()
if(POLICY CMP0060)
cmake_policy(SET CMP0060 NEW)
endif()
+if(POLICY CMP0075)
+ cmake_policy(SET CMP0075 NEW)
+endif()
# Point CMake at any custom modules we may ship
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
diff --git a/third-party/cmake/BuildTreesitterParsers.cmake b/third-party/cmake/BuildTreesitterParsers.cmake
index f966d640e6..4ceb402455 100644
--- a/third-party/cmake/BuildTreesitterParsers.cmake
+++ b/third-party/cmake/BuildTreesitterParsers.cmake
@@ -15,7 +15,6 @@ PATCH_COMMAND ${CMAKE_COMMAND} -E copy
${DEPS_BUILD_DIR}/src/treesitter-c/CMakeLists.txt
CMAKE_ARGS
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_GENERATOR=${CMAKE_GENERATOR}
-DCMAKE_GENERATOR_PLATFORM=${CMAKE_GENERATOR_PLATFORM}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}