aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@gmail.com>2014-07-15 22:35:08 +0100
committerJohn Szakmeister <john@szakmeister.net>2014-08-23 09:00:19 -0400
commit5fffe1ab8ed4033c186ccdc0a989f00631b8ce03 (patch)
tree38f9f692914832c7a4d92416b55a8ce7f8d04c8c
parent057f26f0a6278845d5a295cdae1b6e92617d41f9 (diff)
downloadrneovim-5fffe1ab8ed4033c186ccdc0a989f00631b8ce03.tar.gz
rneovim-5fffe1ab8ed4033c186ccdc0a989f00631b8ce03.tar.bz2
rneovim-5fffe1ab8ed4033c186ccdc0a989f00631b8ce03.zip
Set the policy to 'OLD' to avoid warning CMP0026 in CMake 3.0.
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0f8978d74f..7a3cef82cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -153,6 +153,12 @@ endif()
if(BUSTED_PRG)
get_property(TEST_INCLUDE_DIRS DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY INCLUDE_DIRECTORIES)
+
+ # Set policy CMP0026 to OLD so we avoid CMake warnings on newer
+ # versions of cmake.
+ if(POLICY CMP0026)
+ cmake_policy(SET CMP0026 OLD)
+ endif()
get_target_property(TEST_LIBNVIM_PATH nvim-test LOCATION)
configure_file(