From: Uwe Hermann Date: Mon, 16 Jun 2014 17:27:27 +0000 (+0200) Subject: CMakeLists.txt: Pass -DENABLE_SIGNALS to the compiler. X-Git-Tag: pulseview-0.3.0~584 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9632990d5428efb120d1085d4f441ad371d447fc;p=pulseview.git CMakeLists.txt: Pass -DENABLE_SIGNALS to the compiler. Until now only the cmake variable ENABLE_SIGNALS was used to add signalhandler.{cpp,h} to the list of files to build. However, main.cpp also uses '#ifdef ENABLE_SIGNALS' which didn't work so far, since -DENABLE_SIGNALS was not passed to the compiler. (one effect being that PulseView cannot be killed via CTRL-C from an xterm or the like) This fixes bug #368. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cc8fbd4..3d63ecde 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,6 +280,10 @@ if(NOT DISABLE_WERROR) add_definitions(-Werror) endif() +if(ENABLE_SIGNALS) + add_definitions(-DENABLE_SIGNALS) +endif() + #=============================================================================== #= Global Include Directories #-------------------------------------------------------------------------------