mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Add ENABLE_DEBUG option to the CMake build.
This commit is contained in:
parent
149c913c3f
commit
fbac8ea313
1 changed files with 4 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ option(ENABLE_UNIT_TESTS "Enable compilation of unit tests." YES)
|
|||
option(ENABLE_UPNP "Build with uPnP support." YES)
|
||||
option(ENABLE_VIDEO "Build with video support." YES)
|
||||
cmake_dependent_option(ENABLE_ASSISTANT "Turn on assistant compiling." YES "ENABLE_GTK_UI" NO)
|
||||
option(ENABLE_DEBUG "Turn on or off debug level logs." NO)
|
||||
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
|
@ -165,6 +166,9 @@ endif()
|
|||
if(ENABLE_ASSISTANT)
|
||||
include_directories(${SOUP_INCLUDE_DIRS})
|
||||
endif()
|
||||
if(ENABLE_DEBUG)
|
||||
add_definitions("-DDEBUG")
|
||||
endif()
|
||||
if(MSVC)
|
||||
include_directories(${MSVC_INCLUDE_DIR})
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue