diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-12 14:42:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-12 14:42:00 +0100 |
| commit | f573fcbc0d2c8d8143f38c3c53f6cc33a5912c6d (patch) | |
| tree | 2df554a299563a0978b6e1435d3a08c8c631da6b /cmake | |
| parent | c099836168fd669372895bb9bfa16522b5972134 (diff) | |
| download | rneovim-f573fcbc0d2c8d8143f38c3c53f6cc33a5912c6d.tar.gz rneovim-f573fcbc0d2c8d8143f38c3c53f6cc33a5912c6d.tar.bz2 rneovim-f573fcbc0d2c8d8143f38c3c53f6cc33a5912c6d.zip | |
build: don't check environment variable to detect CI (#22234)
Instead use the cmake option, which should act as the definitive source
to determine whether we use CI or not.
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/RunTests.cmake | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index 3ac15f91ea..fe346661b5 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -1,13 +1,5 @@ # 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 project settings aren't inherited - # when using 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) @@ -99,7 +91,7 @@ if(NOT res EQUAL 0) endif() # Dump the logfile on CI (if not displayed and moved already). - if($ENV{CI}) + if(CI_BUILD) if(EXISTS $ENV{NVIM_LOG_FILE} AND NOT EXISTS $ENV{NVIM_LOG_FILE}.displayed) file(READ $ENV{NVIM_LOG_FILE} out) message(STATUS "$NVIM_LOG_FILE: $ENV{NVIM_LOG_FILE}\n${out}") |