aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nvim/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 11f2c3dc6d..7d75b8038e 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -170,7 +170,11 @@ if(HAS_DIAG_COLOR_FLAG)
endif()
endif()
-option(CI_BUILD "CI, extra flags will be set" OFF)
+if($ENV{CI})
+ option(CI_BUILD "CI, extra flags will be set" ON)
+else()
+ option(CI_BUILD "CI, extra flags will be set" OFF)
+endif()
if(CI_BUILD)
message(STATUS "CI build enabled")
if(MSVC)