aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-10-02 03:44:57 +0200
committerGitHub <noreply@github.com>2019-10-02 03:44:57 +0200
commitac32426b94deabb6843fab797957f0064a54c5a5 (patch)
treee1662bdc32e777345081bcc87629152d20a301e4
parent8a4ae3d664a22cfaa3ec05635d26a8d662458c7e (diff)
downloadrneovim-ac32426b94deabb6843fab797957f0064a54c5a5.tar.gz
rneovim-ac32426b94deabb6843fab797957f0064a54c5a5.tar.bz2
rneovim-ac32426b94deabb6843fab797957f0064a54c5a5.zip
build: get rid of warnings with `cmake --debug-output` (#11131)
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83fd67837d..1b6ba45820 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,13 @@
cmake_minimum_required(VERSION 2.8.12)
project(nvim C)
+if(POLICY CMP0065)
+ cmake_policy(SET CMP0065 NEW)
+endif()
+if(POLICY CMP0060)
+ cmake_policy(SET CMP0060 NEW)
+endif()
+
# Point CMake at any custom modules we may ship
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")