diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2012-04-23 17:18:55 +0300 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2012-04-23 17:18:55 +0300 |
commit | b872ce0312022b5ac86a368305c34ce9fda7d720 (patch) | |
tree | 1c239e472a6c956f78cefe9799b142710e8040e7 /configure.cmake | |
parent | e881e03e01e1c27fa4d7715aec750d34af56aadd (diff) | |
download | mariadb-git-b872ce0312022b5ac86a368305c34ce9fda7d720.tar.gz |
Fixed a cmake compile problem because of the 2.8.8 fix.
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake index b8fa70db203..5b1afd66439 100644 --- a/configure.cmake +++ b/configure.cmake @@ -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}) |