cleanup: use predefined CMAKE_DL_LIBS

instead of, say, MY_SEARCH_LIBS(dlopen dl LIBDL)
This commit is contained in:
Sergei Golubchik
2020-08-02 10:30:46 +02:00
parent 641f81baf4
commit 6cefe7d31e
11 changed files with 10 additions and 12 deletions

View File

@ -135,7 +135,7 @@ MACRO (MYSQL_CHECK_SSL)
SET(SSL_LIBRARIES ${SSL_LIBRARIES} ${LIBSOCKET})
ENDIF()
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
SET(SSL_LIBRARIES ${SSL_LIBRARIES} ${LIBDL})
SET(SSL_LIBRARIES ${SSL_LIBRARIES} ${CMAKE_DL_LIBS})
ENDIF()
MESSAGE_ONCE(OPENSSL_INCLUDE_DIR "OPENSSL_INCLUDE_DIR = ${OPENSSL_INCLUDE_DIR}")