Commit bcd2a156 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub Committed by Vladislav Vaintroub

MDEV-9833 - fix mysql_config --libs for weird cases, where mysqlclient link...

MDEV-9833 - fix mysql_config --libs for weird cases, where mysqlclient link dependencies contain  flags instead of libraries (like  -pthread rather than -lpthread)
parent 4b08b10b
...@@ -25,7 +25,7 @@ MACRO(EXTRACT_LINK_LIBRARIES target var) ...@@ -25,7 +25,7 @@ MACRO(EXTRACT_LINK_LIBRARIES target var)
# Filter out "general", it is not a library, just CMake hint # Filter out "general", it is not a library, just CMake hint
# Also, remove duplicates # Also, remove duplicates
IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} ") IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} ")
IF (lib MATCHES "^\\-l") IF (lib MATCHES "^\\-")
SET(${var} "${${var}} ${lib} ") SET(${var} "${${var}} ${lib} ")
ELSEIF(lib MATCHES "^/") ELSEIF(lib MATCHES "^/")
IF (lib MATCHES "\\.(a|so([0-9.]*)|lib|dll|dylib)$") IF (lib MATCHES "\\.(a|so([0-9.]*)|lib|dll|dylib)$")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment