aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2014-12-08 20:00:54 +0000
committerRui Abreu Ferreira <raf-ep@gmx.com>2016-01-10 17:06:53 +0000
commit72d03cc961796266b7b29a1e3afce94e9770c91b (patch)
treed8798cb31850b134c54dc287e3411457f4f33c0e /src
parent50db0312f941ba489466d7d6b21088f1870429ee (diff)
downloadrneovim-72d03cc961796266b7b29a1e3afce94e9770c91b.tar.gz
rneovim-72d03cc961796266b7b29a1e3afce94e9770c91b.tar.bz2
rneovim-72d03cc961796266b7b29a1e3afce94e9770c91b.zip
cmake: Pass -DMIN_LOG_LEVEL as compiler definition
- Check if MIN_LOG_LEVEL value is a number 0-3, default to INFO (1) or ignore it in Release mode - When TRAVIS_CI_BUILD is ON the default is DEBUG (0) - Add local.mk.example
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 1038895b86..ea5125e4e7 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -108,6 +108,10 @@ if(NOT MSVC)
${CONV_SOURCES} PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -Wno-conversion")
endif()
+if(DEFINED MIN_LOG_LEVEL)
+ add_definitions(-DMIN_LOG_LEVEL=${MIN_LOG_LEVEL})
+endif()
+
get_directory_property(gen_cdefs COMPILE_DEFINITIONS)
foreach(gen_cdef ${gen_cdefs} DO_NOT_DEFINE_EMPTY_ATTRIBUTES)
if(NOT "${gen_cdef}" MATCHES "INCLUDE_GENERATED_DECLARATIONS")