Bug #65050 CMake 2.8.8 cannot build MySQL 5.5.23
| Submitted: | 20 Apr 2012 8:45 | Modified: | 23 Aug 2012 17:32 |
|---|---|---|---|
| Reporter: | Mike McQuaid McQuaid | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S1 (Critical) |
| Version: | 5.5.23 | OS: | MacOS |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | Contribution | ||
[25 Apr 2012 7:12]
Jon Olav Hauglid
See http://lists.mysql.com/commits/143611
[25 Apr 2012 22:52]
Vladislav Vaintroub
Original fix (attached to problem description) was way better.
[25 Apr 2012 23:44]
Mike McQuaid McQuaid
Agreed.
[26 Apr 2012 6:12]
Valeriy Kravchuk
Thank you for the problem report and fix contributed.
[23 Aug 2012 17:32]
Paul DuBois
Noted in 5.5.27 changelog. MySQL builds failed with CMake 2.8.8.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: Fails with this error: CMake Error at configure.cmake:153 (LIST): list sub-command SORT requires list to be present. Call Stack (most recent call first): CMakeLists.txt:246 (INCLUDE) You need to check lists are empty in CMake 2.8.8 before trying to perform list operations on them. How to repeat: Try and build with CMake. Suggested fix: diff --git a/configure.cmake b/configure.cmake index c3cc787..6193481 100644 --- a/configure.cmake +++ b/configure.cmake @@ -149,7 +149,9 @@ IF(UNIX) SET(CMAKE_REQUIRED_LIBRARIES ${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${LIBDL} ${CMAKE_THREAD_LIBS_INIT} ${LIBRT}) - LIST(REMOVE_DUPLICATES CMAKE_REQUIRED_LIBRARIES) + IF(CMAKE_REQUIRED_LIBRARIES) + LIST(REMOVE_DUPLICATES CMAKE_REQUIRED_LIBRARIES) + ENDIF() LINK_LIBRARIES(${CMAKE_THREAD_LIBS_INIT}) OPTION(WITH_LIBWRAP "Compile with tcp wrappers support" OFF)