mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
81d2d239c3
commit
5558074452
@ -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)
|
||||
|
@ -173,6 +173,7 @@
|
||||
#define HAVE_MODE_T
|
||||
#endif
|
||||
|
||||
|
||||
#cmakedefine _GLIBCXX_DEBUG 1
|
||||
#cmakedefine _GLIBCXX_DEBUG_PEDANTIC 1
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user