Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
[cmake] debug is on by default if branch is dev - can be disabled by …
Browse files Browse the repository at this point in the history
…command line option -DDEBUG
  • Loading branch information
hugsy committed Jun 15, 2015
1 parent 38a3c29 commit 9f714d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ option(USE_PERL_PLUGIN "Add Perl script support" ON)
option(USE_TCL_PLUGIN "Add Tcl script support" ON)
option(USE_JAVA_PLUGIN "Add Java script support" ON)

option(DEBUG "Enable Debug" OFF)
option(DEBUG_SSL "Enable SSL debug" OFF)
option(DEBUG_LEAK "Enable memleak checks" OFF)

# enforcing debug compil when in branch dev
if(GIT_RELEASE_BRANCH STREQUAL "dev")
set(DEBUG ON)
option(DEBUG "Enable Debug" ON)
else()
option(DEBUG "Enable Debug" OFF)
endif()

option(DEBUG_SSL "Enable SSL debug" OFF)
option(DEBUG_LEAK "Enable memleak checks" OFF)

if (DEBUG)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_C_FLAGS_DEBUG "-ggdb -DDEBUG -O0")
Expand Down
2 changes: 1 addition & 1 deletion proxenet-plugins

0 comments on commit 9f714d3

Please sign in to comment.