mirror of
https://github.com/MariaDB/server.git
synced 2025-04-11 17:55:34 +02:00
MDEV-9833 - fix mysql_config --libs for weird cases, where mysqlclient link dependencies contain flags instead of libraries (like -pthread rather than -lpthread)
This commit is contained in:
parent
4b08b10b3a
commit
bcd2a156ee
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ MACRO(EXTRACT_LINK_LIBRARIES target var)
|
|||
# Filter out "general", it is not a library, just CMake hint
|
||||
# Also, remove duplicates
|
||||
IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} ")
|
||||
IF (lib MATCHES "^\\-l")
|
||||
IF (lib MATCHES "^\\-")
|
||||
SET(${var} "${${var}} ${lib} ")
|
||||
ELSEIF(lib MATCHES "^/")
|
||||
IF (lib MATCHES "\\.(a|so([0-9.]*)|lib|dll|dylib)$")
|
||||
|
|
Loading…
Add table
Reference in a new issue