CMake: don't include libc.so in wx-config
Closes https://github.com/wxWidgets/wxWidgets/pull/2364
This commit is contained in:
parent
2cd1ec668c
commit
750bf01fe6
@ -42,7 +42,9 @@ macro(wx_get_dependencies var lib)
|
|||||||
else()
|
else()
|
||||||
get_filename_component(dep_name ${dep} NAME)
|
get_filename_component(dep_name ${dep} NAME)
|
||||||
endif()
|
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} ")
|
wx_string_append(${var} "${dep_name} ")
|
||||||
elseif(dep_name MATCHES "^lib(.*)(.so|.dylib|.tbd|.a)")
|
elseif(dep_name MATCHES "^lib(.*)(.so|.dylib|.tbd|.a)")
|
||||||
wx_string_append(${var} "-l${CMAKE_MATCH_1} ")
|
wx_string_append(${var} "-l${CMAKE_MATCH_1} ")
|
||||||
|
Loading…
Reference in New Issue
Block a user