Remove dependency on GTK from wxbase in CMake build

libwx_baseu_3.1.so should not include "-lgtk-3" during link.

See https://github.com/wxWidgets/wxWidgets/pull/2434

Closes #19224.
This commit is contained in:
jolz
2021-07-13 15:38:38 +02:00
committed by Vadim Zeitlin
parent 912f4b76ac
commit 5a514afd34

View File

@@ -296,7 +296,7 @@ function(wx_set_target_properties target_name is_base)
${wxSOURCE_DIR}/include
)
if(wxTOOLKIT_INCLUDE_DIRS)
if(wxTOOLKIT_INCLUDE_DIRS AND NOT is_base)
target_include_directories(${target_name}
PUBLIC ${wxTOOLKIT_INCLUDE_DIRS})
endif()
@@ -327,7 +327,7 @@ function(wx_set_target_properties target_name is_base)
PUBLIC ${WIN32_LIBRARIES})
endif()
if(wxTOOLKIT_LIBRARIES)
if(wxTOOLKIT_LIBRARIES AND NOT is_base)
target_link_libraries(${target_name}
PUBLIC ${wxTOOLKIT_LIBRARIES})
endif()