CMake: add an option for using preferred release build flags

Add wxUSE_OPTIMISE build option.

See #18436.

Closes https://github.com/wxWidgets/wxWidgets/pull/1399
This commit is contained in:
Deamhan
2019-07-09 18:22:07 +03:00
committed by Vadim Zeitlin
parent c219b53a2d
commit 0be2d94189
2 changed files with 39 additions and 0 deletions

View File

@@ -47,6 +47,13 @@ if(WIN32)
set(wxBUILD_VENDOR "custom" CACHE STRING "Short string identifying your company (used in DLL name)")
endif()
wx_option(wxBUILD_OPTIMISE "use speed-optimised C/C++ compiler flags for release build" OFF)
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})
wx_option(wxUSE_NO_RTTI "disable RTTI support" OFF)
# STL options