CMake: Add wxBUILD_FLAVOUR option

It is similar to --with-flavour option from configure.

Mark some build options as advanced.
This commit is contained in:
Maarten Bent
2020-02-16 21:33:44 +01:00
parent 4196c67b72
commit 016061311a
3 changed files with 25 additions and 11 deletions

View File

@@ -50,14 +50,18 @@ endif()
if(WIN32)
set(wxBUILD_VENDOR "custom" CACHE STRING "Short string identifying your company (used in DLL name)")
endif()
set(wxBUILD_FLAVOUR "" CACHE STRING "Specify a name to identify the build")
mark_as_advanced(wxBUILD_FLAVOUR)
wx_option(wxBUILD_OPTIMISE "use speed-optimised C/C++ compiler flags for release build" OFF)
mark_as_advanced(wxBUILD_OPTIMISE)
if(MSVC)
set(wxBUILD_STRIPPED_RELEASE_DEFAULT OFF)
else()
set(wxBUILD_STRIPPED_RELEASE_DEFAULT ON)
endif()
wx_option(wxBUILD_STRIPPED_RELEASE "remove debug symbols in release build" ${wxBUILD_STRIPPED_RELEASE_DEFAULT})
mark_as_advanced(wxBUILD_STRIPPED_RELEASE)
wx_option(wxUSE_NO_RTTI "disable RTTI support" OFF)
# STL options