Skip to content

Commit

Permalink
Bug #30541879 WRONG OUTPUT FROM MYSQL_CONFIG ON MAC FOR -DWITH_SSL=SY…
Browse files Browse the repository at this point in the history
…STEM

imported_ssl and imported_crypto are internal cmake names for the static SSL
libraries. Do not expose these names externally.

Change-Id: I6a3c255dc7e4daf03159e1e1e064c3376df54334
  • Loading branch information
Tor Didriksen committed Nov 14, 2019
1 parent 2720335 commit 2e3d073
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/CMakeLists.txt
Expand Up @@ -322,8 +322,11 @@ MACRO(EXTRACT_LINK_LIBRARIES target var)
LIST(REMOVE_ITEM ${target}_LIB_DEPENDS "")
LIST(REMOVE_DUPLICATES ${target}_LIB_DEPENDS)
FOREACH(lib ${${target}_LIB_DEPENDS})
# Filter out -limported_openssl and -limported_crypto
# Filter out "general", it is not a library, just CMake hint
IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} ")
IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} " AND
NOT lib MATCHES "imported_"
)
IF (lib MATCHES "^\\-l")
SET(${var} "${${var}} ${lib} ")
ELSEIF (lib MATCHES "^\\-L")
Expand Down

0 comments on commit 2e3d073

Please sign in to comment.