CMake: Set wx-config base, gui and built libraries
Remove unused propagated variables.
This commit is contained in:
parent
bc4b56bf88
commit
33a550d97f
@ -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})
|
||||
|
@ -313,8 +313,6 @@ macro(wx_add_library name)
|
||||
RUNTIME DESTINATION "lib${wxPLATFORM_LIB_DIR}"
|
||||
BUNDLE DESTINATION Applications/wxWidgets
|
||||
)
|
||||
|
||||
list(APPEND wxLIB_TARGETS ${name})
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
@ -349,7 +347,6 @@ endmacro()
|
||||
|
||||
# Enable precompiled headers for wx libraries
|
||||
macro(wx_finalize_lib target_name)
|
||||
set(wxLIB_TARGETS ${wxLIB_TARGETS} PARENT_SCOPE)
|
||||
if(wxBUILD_PRECOMP)
|
||||
if(TARGET ${target_name})
|
||||
wx_target_enable_precomp(${target_name} "${wxSOURCE_DIR}/include/wx/wxprec.h")
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
include(../source_groups.cmake)
|
||||
|
||||
set(wxLIB_TARGETS)
|
||||
if(wxBUILD_MONOLITHIC)
|
||||
# Initialize variables for monolithic build
|
||||
set(wxMONO_SRC_FILES)
|
||||
@ -98,7 +97,3 @@ if(wxBUILD_MONOLITHIC)
|
||||
endforeach()
|
||||
wx_finalize_lib(mono)
|
||||
endif()
|
||||
|
||||
# Propagate variable(s) to parent scope
|
||||
set(wxLIB_TARGETS ${wxLIB_TARGETS} PARENT_SCOPE)
|
||||
set(wxTHIRD_PARTY_LIBRARIES ${wxTHIRD_PARTY_LIBRARIES} PARENT_SCOPE)
|
||||
|
@ -16,6 +16,3 @@ add_subdirectory(drawing)
|
||||
add_subdirectory(gui)
|
||||
|
||||
endif()
|
||||
|
||||
# Propagate variable(s) to parent scope
|
||||
set(wxTHIRD_PARTY_LIBRARIES ${wxTHIRD_PARTY_LIBRARIES} PARENT_SCOPE)
|
||||
|
Loading…
Reference in New Issue
Block a user