mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-03 10:57:33 +01:00
CMake: Add option to turn off debug output
This commit is contained in:
parent
8008ec895a
commit
2597a8faed
@ -84,6 +84,13 @@ add_compile_options(${COMPILE_OPTIONS})
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
add_definitions(-DNDEBUG)
|
||||
set(ENABLE_DEBUG_OUTPUT_DEFAULT OFF)
|
||||
else()
|
||||
set(ENABLE_DEBUG_OUTPUT_DEFAULT ON)
|
||||
endif()
|
||||
|
||||
option(ENABLE_DEBUG_OUTPUT "Enable debug output" ${ENABLE_DEBUG_OUTPUT_DEFAULT})
|
||||
if(NOT ENABLE_DEBUG_OUTPUT)
|
||||
add_definitions(-DQT_NO_DEBUG_OUTPUT)
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user