Add CMake option to set wxDEBUG_LEVEL

It is no use adding it to the generated setup.h because this section is commented out,
so add it as compiler option instead.
The default option is 'Default' in which case no compiler option is added.
This commit is contained in:
Maarten Bent
2018-10-24 19:47:18 +02:00
parent a02bb61e90
commit f1cf525944
2 changed files with 7 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ wx_option(wxBUILD_COMPATIBILITY
set(wxBUILD_CUSTOM_SETUP_HEADER_PATH "" CACHE PATH "Include path containing custom wx/setup.h")
mark_as_advanced(wxBUILD_CUSTOM_SETUP_HEADER_PATH)
wx_option(wxBUILD_DEBUG_LEVEL "Debug Level" Default STRINGS Default 0 1 2)
mark_as_advanced(wxBUILD_DEBUG_LEVEL)
if(MSVC)
wx_option(wxBUILD_USE_STATIC_RUNTIME "Link using the static runtime library" OFF)
wx_option(wxBUILD_MSVC_MULTIPROC "Enable multi-processor compilation for MSVC")