diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2016-02-19 14:42:43 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@googlemail.com> | 2016-02-22 12:42:28 +0100 |
commit | bcd2a156eec61a7771f3f052503e0ff7b27fb55c (patch) | |
tree | ff059c26aac7de5477d416f8c22119919e269965 /cmake | |
parent | 4b08b10b3ace67481cb7c03e0d3e95aaf6e954f7 (diff) | |
download | mariadb-git-bcd2a156eec61a7771f3f052503e0ff7b27fb55c.tar.gz |
MDEV-9833 - fix mysql_config --libs for weird cases, where mysqlclient link dependencies contain flags instead of libraries (like -pthread rather than -lpthread)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/for_clients.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/for_clients.cmake b/cmake/for_clients.cmake index 01b4c0a84f7..dd79ea1039d 100644 --- a/cmake/for_clients.cmake +++ b/cmake/for_clients.cmake @@ -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)$") |