mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +00:00
build: set MIN_LOG_LEVEL correctly (#7419)
closes #7283 regression by42d892913d
- Don't need to explicitly put "-O2 -g" in RelWithDebInfo; CMake does that already. That was left-over from42d892913d
which removed the "Dev" custom build-type, but repurposed the logic for RelWithDebInfo. - `if(DEFINED MIN_LOG_LEVEL)` doesn't work. - `if(${MIN_LOG_LEVEL} MATCHES "^$")` doesn't work if -DMIN_LOG_LEVEL is omitted. - `if(MIN_LOG_LEVEL)` also isn't what we want: it would be true if MIN_LOG_LEVEL=0.
This commit is contained in:
@@ -164,7 +164,7 @@ if(NOT MSVC)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(DEFINED MIN_LOG_LEVEL)
|
||||
if(NOT "${MIN_LOG_LEVEL}" MATCHES "^$")
|
||||
add_definitions(-DMIN_LOG_LEVEL=${MIN_LOG_LEVEL})
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user