build: Specify old behavior for POLICY CMP0059.

This is needed as long as we support cmake older than 2.8.12. When we
bump the minimum version to 2.8.12, we can use target_compile_options()
and add_compile_options() instead.

Closes #4389
This commit is contained in:
Justin M. Keyes 2016-03-09 10:25:28 -05:00
parent de33c9f005
commit d9ecd06627

View File

@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 2.8.7)
project(nvim)
if(POLICY CMP0059)
cmake_policy(SET CMP0059 OLD) # Needed until cmake 2.8.12. #4389
endif()
# Point CMake at any custom modules we may ship
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")