Skip to content

Commit

Permalink
Build sniff only in debug mode
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Aug 23, 2016
1 parent d67f76b commit c259cc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gammu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ set (BINARY_SRC
depend/nokia/dct4.c
depend/siemens/dsiemens.c
depend/siemens/chiffre.c
sniff.c
common.c
memory.c
message.c
Expand All @@ -34,6 +33,10 @@ if (WITH_BACKUP)
list(APPEND BINARY_SRC backup.c backupsms.c)
endif (WITH_BACKUP)

if (DEBUG)
list(APPEND BINARY_SRC sniff.c)
endif()


# Hides default case in switch, to allow checking whether all cases are handled.
if(DEBUG)
Expand Down

0 comments on commit c259cc2

Please sign in to comment.