mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
revert: "build: remove unnecessary policy related code" #20289
This partially reverts commit 42aeb5c5b1
.
Setting cmake policies is normally not required as
cmake_minimum_required automatically sets these. One exception is cmake
script mode (-P) since it automatically resets all policy changes.
Closes: https://github.com/neovim/neovim/issues/20286
This commit is contained in:
parent
fcd3e53720
commit
600136cfb6
@ -1,6 +1,13 @@
|
||||
# Set LC_ALL to meet expectations of some locale-sensitive tests.
|
||||
set(ENV{LC_ALL} "en_US.UTF-8")
|
||||
|
||||
if(POLICY CMP0012)
|
||||
# Avoid policy warning due to CI=true. This is needed even if the main
|
||||
# project has already set this policy as policy settings are reset when using
|
||||
# the cmake script mode (-P).
|
||||
cmake_policy(SET CMP0012 NEW)
|
||||
endif()
|
||||
|
||||
set(ENV{VIMRUNTIME} ${WORKING_DIR}/runtime)
|
||||
set(ENV{NVIM_RPLUGIN_MANIFEST} ${BUILD_DIR}/Xtest_rplugin_manifest)
|
||||
set(ENV{XDG_CONFIG_HOME} ${BUILD_DIR}/Xtest_xdg/config)
|
||||
|
Loading…
Reference in New Issue
Block a user