mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Fixed a cmake compile problem because of the 2.8.8 fix.
This commit is contained in:
parent
e881e03e01
commit
b872ce0312
1 changed files with 3 additions and 2 deletions
|
@ -149,8 +149,9 @@ IF(UNIX)
|
|||
SET(CMAKE_REQUIRED_LIBRARIES
|
||||
${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${LIBDL} ${CMAKE_THREAD_LIBS_INIT} ${LIBRT})
|
||||
|
||||
IF(NOT ${CMAKE_REQUIRED_LIBRARIES} MATCHES '')
|
||||
LIST(REMOVE_DUPLICATES ${CMAKE_REQUIRED_LIBRARIES})
|
||||
LIST(LENGTH CMAKE_REQUIRED_LIBRARIES required_libs_length)
|
||||
IF(${required_libs_length} GREATER 0)
|
||||
LIST(REMOVE_DUPLICATES CMAKE_REQUIRED_LIBRARIES)
|
||||
ENDIF()
|
||||
LINK_LIBRARIES(${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
|
|
Loading…
Reference in a new issue