From b0bb4094d84cd71539c1df7f30c2e3db5f107d5b Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Fri, 7 Jun 2013 17:09:51 -0400 Subject: [PATCH] CMake: get rid of the OWLPS_DEBUG option The constant is not used in any program any more, so we can stop declaring it. --- CMakeLists.txt | 7 ------- INSTALL.t2t | 3 --- TODO.t2t | 2 -- 3 files changed, 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a436510..4e648b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,13 +82,6 @@ if (NOT CMAKE_BUILD_TYPE) CACHE STRING "Set the default configuration" FORCE) endif() -option (OWLPS_DEBUG - "Enable debug code" - on) -if (OWLPS_DEBUG) - add_definitions(-DOWLPS_DEBUG) -endif() - ### Flags ### diff --git a/INSTALL.t2t b/INSTALL.t2t index e797851..047a4e4 100644 --- a/INSTALL.t2t +++ b/INSTALL.t2t @@ -77,9 +77,6 @@ example (from an empty directory): Here are the OwlPS-specific switches you can change in the CMake configuration as explained in the previous section. -- ``OWLPS_DEBUG``: enable/disable debug code (some more tests and - informational messages). - - ``OWLPS_CLIENT_RECEIVES_POSITION``: enable/disable OwlPS Client's ``-l`` option (which enables receiving the computed position from the Positioner). diff --git a/TODO.t2t b/TODO.t2t index 5397b09..6002ee3 100644 --- a/TODO.t2t +++ b/TODO.t2t @@ -44,8 +44,6 @@ Work to do in OwlPS See also select_tut(2). -- Option -V should tell if OWLPS_DEBUG is enabled or not. - - Eliminate remaining exit() calls to avoid memory leaks on exit. - Use atexit() / on_exit() instead of goto to clean at exit?