Added glibc debug options to cmake

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33603 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2010-03-01 11:06:13 +00:00
parent 81d2d239c3
commit 5558074452
2 changed files with 13 additions and 1 deletions

View File

@ -430,6 +430,17 @@ if(NOT ${_PERL_EXECUTABLE} MATCHES "-NOTFOUND")
endif()
endif()
option(debug_glibc "Enable libstdc++ debug mode" OFF)
option(debug_glibc_pedantic "Enable libstdc++pedantic debug mode" OFF)
if(debug_glibc)
set(_GLIBCXX_DEBUG 1)
endif()
if(debug_glibc_pedantic)
set(_GLIBCXX_DEBUG_PEDANTIC 1)
endif()
# compiler tests, config.h generation
if(MSVC AND NOT CONFIGURECHECKS)
configure_file(configCompiler.h.msvc ${CMAKE_BINARY_DIR}/configCompiler.h)

View File

@ -173,6 +173,7 @@
#define HAVE_MODE_T
#endif
#cmakedefine _GLIBCXX_DEBUG 1
#cmakedefine _GLIBCXX_DEBUG_PEDANTIC 1
#endif