mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
de33c9f005
commit
d9ecd06627
@ -1,6 +1,10 @@
|
|||||||
cmake_minimum_required(VERSION 2.8.7)
|
cmake_minimum_required(VERSION 2.8.7)
|
||||||
project(nvim)
|
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
|
# Point CMake at any custom modules we may ship
|
||||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user