CMake: Set wx-config base, gui and built libraries
Remove unused propagated variables.
This commit is contained in:
@@ -79,11 +79,26 @@ function(wx_write_config)
|
||||
endif()
|
||||
|
||||
set(BUILT_WX_LIBS)
|
||||
foreach(lib IN LISTS wxLIB_TARGETS)
|
||||
wx_string_append(BUILT_WX_LIBS " ${lib}")
|
||||
endforeach()
|
||||
set(STD_BASE_LIBS)
|
||||
set(STD_GUI_LIBS)
|
||||
set(STD_BASE_LIBS_ALL xml net base)
|
||||
set(STD_GUI_LIBS_ALL xrc html qa adv core)
|
||||
foreach(lib IN ITEMS xrc webview stc richtext ribbon propgrid aui gl media html qa adv core xml net base)
|
||||
if(TARGET ${lib})
|
||||
wx_string_append(BUILT_WX_LIBS "${lib} ")
|
||||
list(FIND STD_BASE_LIBS_ALL ${lib} index)
|
||||
if (index GREATER -1)
|
||||
wx_string_append(STD_BASE_LIBS "${lib} ")
|
||||
endif()
|
||||
list(FIND STD_GUI_LIBS_ALL ${lib} index)
|
||||
if (index GREATER -1)
|
||||
wx_string_append(STD_GUI_LIBS "${lib} ")
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
string(STRIP ${BUILT_WX_LIBS} BUILT_WX_LIBS)
|
||||
string(STRIP ${STD_BASE_LIBS} STD_BASE_LIBS)
|
||||
string(STRIP ${STD_GUI_LIBS} STD_GUI_LIBS)
|
||||
|
||||
set(WX_RELEASE ${wxMAJOR_VERSION}.${wxMINOR_VERSION})
|
||||
set(WX_VERSION ${wxVERSION})
|
||||
|
Reference in New Issue
Block a user