From 750bf01fe60d230b8c5dcd5c57557c870a4caaba Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Mon, 10 May 2021 22:17:14 +0200 Subject: [PATCH] CMake: don't include libc.so in wx-config Closes https://github.com/wxWidgets/wxWidgets/pull/2364 --- build/cmake/config.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/cmake/config.cmake b/build/cmake/config.cmake index b50c4838eb..3157d7fd26 100644 --- a/build/cmake/config.cmake +++ b/build/cmake/config.cmake @@ -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} ")