diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-03-09 10:25:28 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-03-09 10:25:45 -0500 |
commit | d9ecd0662700839cead978607150e410ba529fc4 (patch) | |
tree | 15c2617e2171f7cc1c37adc2569dfde9d738de31 | |
parent | de33c9f00544485ebe34c0af94693a4c97053392 (diff) | |
download | rneovim-d9ecd0662700839cead978607150e410ba529fc4.tar.gz rneovim-d9ecd0662700839cead978607150e410ba529fc4.tar.bz2 rneovim-d9ecd0662700839cead978607150e410ba529fc4.zip |
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
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 97681226bd..07557c6580 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") |