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

@@ -118,6 +118,11 @@ if(NOT wxBUILD_SHARED)
wx_string_append(wxBUILD_FILE_ID "-static")
endif()
wx_string_append(wxBUILD_FILE_ID "-${wxMAJOR_VERSION}.${wxMINOR_VERSION}")
if(wxBUILD_FLAVOUR)
set(lib_flavour ${wxBUILD_FLAVOUR})
string(REPLACE "-" "_" lib_flavour ${lib_flavour})
wx_string_append(wxBUILD_FILE_ID "-${lib_flavour}")
endif()
set(wxARCH_SUFFIX)