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} ")