Define wxHAVE_CEF_DEBUG when building CEF wrapper in debug
We need to define NDEBUG when using release build of the wrapper only, so don't do it if it was built in debug by CMake.
This commit is contained in:
parent
adedb499f5
commit
faec76990e
2 changed files with 12 additions and 0 deletions
|
|
@ -613,6 +613,13 @@ check_type_size(ssize_t SSIZE_T)
|
|||
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
if(wxUSE_WEBVIEW_CHROMIUM)
|
||||
string(TOUPPER ${CMAKE_BUILD_TYPE} build_type)
|
||||
if(${build_type} STREQUAL DEBUG)
|
||||
set(wxHAVE_CEF_DEBUG ON)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
configure_file(build/cmake/setup.h.in ${wxSETUP_HEADER_FILE})
|
||||
if(DEFINED wxSETUP_HEADER_FILE_DEBUG)
|
||||
# The debug version may be configured with different values in the future
|
||||
|
|
|
|||
|
|
@ -598,6 +598,11 @@
|
|||
#cmakedefine01 wxUSE_SELECT_DISPATCHER
|
||||
#cmakedefine01 wxUSE_EPOLL_DISPATCHER
|
||||
|
||||
/*
|
||||
Use debug version of CEF in wxWebViewChromium.
|
||||
*/
|
||||
#cmakedefine wxHAVE_CEF_DEBUG
|
||||
|
||||
/*
|
||||
Use GStreamer for Unix.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue