[latexila] CMake: remove debug options
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] CMake: remove debug options
- Date: Tue, 19 Jul 2011 17:26:22 +0000 (UTC)
commit 892a87cbbe94b84229155ac3fee960f87388d50b
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Tue Jul 19 19:19:34 2011 +0200
CMake: remove debug options
To enable debug options, run cmake with this option:
-DCMAKE_BUILD_TYPE=Debug
CMakeLists.txt | 3 ---
HACKING | 6 ++----
src/CMakeLists.txt | 4 ----
3 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dca5048..aa994a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,9 +11,6 @@ set (DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/latexila"
CACHE PATH "The directory where the data is")
set (BUILD_VALA ON CACHE BOOL "Generate the C code from Vala files")
-# for debugging
-set (CMAKE_C_FLAGS "-ggdb")
-
# Native Language Support
set (GETTEXT_PACKAGE "latexila")
set (LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale")
diff --git a/HACKING b/HACKING
index a069c42..07d9058 100644
--- a/HACKING
+++ b/HACKING
@@ -50,16 +50,14 @@ How to generate the C code from Vala files?
See the file "INSTALL".
How to debug LaTeXila with gdb?
- If you are using the master branch, the debug stuff is enabled by default.
- Here is how you can get the backtrace after a crash:
+ Run CMake with this option: -DCMAKE_BUILD_TYPE=Debug
+ Here is how you can get the backtrace after a crash:
$ gdb ./latexila
> run
[segmentation fault]
> bt
- The debug stuff is disabled in the releases-* branches.
-
Translations
============
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8456d84..801ca17 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,10 +13,6 @@ vala_precompile (
x11
posix
-# for debugging
- OPTIONS
- --debug
-
CUSTOM_VAPIS
${vapi_files}
DIRECTORY
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]