diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a29d8d6834..abb2bdf248 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,15 @@ set(NEOVIM_VERSION_PATCH 0) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -add_definitions(-Werror -Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99) +add_definitions(-Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99) + +option( + TRAVIS_CI_BUILD "Travis CI build. Extra compilation flags will be set." OFF) + +if(TRAVIS_CI_BUILD) + message(STATUS "Travis CI build enabled.") + add_definitions(-Werror) +endif() add_definitions(-DHAVE_CONFIG_H) if(CMAKE_BUILD_TYPE MATCHES Debug) |