Skip to content

Instantly share code, notes, and snippets.

@abg
Created April 15, 2014 04:37
Show Gist options
  • Select an option

  • Save abg/10702544 to your computer and use it in GitHub Desktop.

Select an option

Save abg/10702544 to your computer and use it in GitHub Desktop.
Patch to MySQL 5.6.17 to set LIBEVENT_LIBRARY for use by innodb_memcached
diff --git a/cmake/libevent.cmake b/cmake/libevent.cmake
index c321e93..b127686 100644
--- a/cmake/libevent.cmake
+++ b/cmake/libevent.cmake
@@ -60,15 +60,15 @@ MACRO (MYSQL_CHECK_LIBEVENT)
set(LIBEVENT_LIB_PATHS /usr/local/lib /opt/local/lib)
ENDIF()
- find_library(LIBEVENT_LIB event PATHS ${LIBEVENT_LIB_PATHS})
+ find_library(LIBEVENT_LIBRARY event PATHS ${LIBEVENT_LIB_PATHS})
- if (NOT LIBEVENT_LIB)
+ if (NOT LIBEVENT_LIBRARY)
MESSAGE(SEND_ERROR "Cannot find appropriate event lib in /usr/local/lib or /opt/local/lib. Use bundled libevent")
endif()
- IF (LIBEVENT_LIB AND LIBEVENT_INCLUDE_DIR)
+ IF (LIBEVENT_LIBRARY AND LIBEVENT_INCLUDE_DIR)
set(LIBEVENT_FOUND TRUE)
- set(LIBEVENT_LIBS ${LIBEVENT_LIB})
+ set(LIBEVENT_LIBS ${LIBEVENT_LIBRARY})
ELSE()
set(LIBEVENT_FOUND FALSE)
ENDIF()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment