diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-04-08 16:27:40 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-04-08 16:27:40 +0200 |
commit | ab157e4556ef2c46de6d4a1f29a024ae58e4d4aa (patch) | |
tree | 44a69ec9a868c9be7ab8dab5d3b32e9bc910407c /scripts | |
parent | f5823b793d60f22268cc735bc8fbacf64993128c (diff) | |
download | mariadb-git-ab157e4556ef2c46de6d4a1f29a024ae58e4d4aa.tar.gz |
MDEV-5152 mysql_config includes -lprobes_mysql but mo such library installed
when converting /a/full/path/to/a/file.ext to -lfile ignore all files
with non-library extenstions.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 421dab20d12..ff4c098295a 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -270,10 +270,12 @@ MACRO(EXTRACT_LINK_LIBRARIES target var) IF (lib MATCHES "^\\-l") SET(${var} "${${var}} ${lib} ") ELSEIF(lib MATCHES "^/") - # Full path, convert to just filename, strip "lib" prefix and extension - GET_FILENAME_COMPONENT(lib "${lib}" NAME_WE) - STRING(REGEX REPLACE "^lib" "" lib "${lib}") - SET(${var} "${${var}}-l${lib} " ) + IF (lib MATCHES "\\.(a|so([0-9.]*)|lib|dll|dylib)$") + # Full path, convert to just filename, strip "lib" prefix and extension + GET_FILENAME_COMPONENT(lib "${lib}" NAME_WE) + STRING(REGEX REPLACE "^lib" "" lib "${lib}") + SET(${var} "${${var}}-l${lib} " ) + ENDIF() ELSE() SET(${var} "${${var}}-l${lib} " ) ENDIF() |