CMake: don't include libc.so in wx-config

Closes https://github.com/wxWidgets/wxWidgets/pull/2364
This commit is contained in:
Maarten Bent 2021-05-10 22:17:14 +02:00 committed by Vadim Zeitlin
parent 2cd1ec668c
commit 750bf01fe6

View File

@ -42,7 +42,9 @@ macro(wx_get_dependencies var lib)
else()
get_filename_component(dep_name ${dep} NAME)
endif()
if(dep_name MATCHES "^-(.*)" OR dep_name STREQUAL "libc.so") # -l, -framework, -weak_framework
if(dep_name STREQUAL "libc.so")
# don't include this library
elseif(dep_name MATCHES "^-(.*)") # -l, -framework, -weak_framework
wx_string_append(${var} "${dep_name} ")
elseif(dep_name MATCHES "^lib(.*)(.so|.dylib|.tbd|.a)")
wx_string_append(${var} "-l${CMAKE_MATCH_1} ")