diff options
author | Shido <the.keikun@gmail.com> | 2014-05-17 17:42:40 +0800 |
---|---|---|
committer | Shido <the.keikun@gmail.com> | 2014-05-30 09:20:04 +0800 |
commit | 05902619eb900472906b9cce38b276e3517d1719 (patch) | |
tree | ee24cadaad612c89969461e67d11184ba5c3879e /3rdparty/mysql | |
parent | aed877235088b6f1d27b6fd03813c2d59e8e13c1 (diff) | |
download | hercules-05902619eb900472906b9cce38b276e3517d1719.tar.gz hercules-05902619eb900472906b9cce38b276e3517d1719.tar.bz2 hercules-05902619eb900472906b9cce38b276e3517d1719.tar.xz hercules-05902619eb900472906b9cce38b276e3517d1719.zip |
Removed CMakeLists.txt (Thanks to Haruna)
Diffstat (limited to '3rdparty/mysql')
-rw-r--r-- | 3rdparty/mysql/CMakeLists.txt | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/3rdparty/mysql/CMakeLists.txt b/3rdparty/mysql/CMakeLists.txt deleted file mode 100644 index e85fd626d..000000000 --- a/3rdparty/mysql/CMakeLists.txt +++ /dev/null @@ -1,68 +0,0 @@ - -# -# local copy -# -if( WIN32 ) -message( STATUS "Detecting local MYSQL" ) -find_path( MYSQL_LOCAL_INCLUDE_DIRS "mysql.h" - PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include" - NO_DEFAULT_PATH ) -find_library( MYSQL_LOCAL_LIBRARIES - NAMES libmysql - PATHS "${CMAKE_CURRENT_SOURCE_DIR}/lib" - NO_DEFAULT_PATH ) -mark_as_advanced( MYSQL_LOCAL_LIBRARIES ) -mark_as_advanced( MYSQL_LOCAL_INCLUDE_DIRS ) - -if( MYSQL_LOCAL_LIBRARIES AND MYSQL_LOCAL_INCLUDE_DIRS ) - if( EXISTS "${MYSQL_LOCAL_INCLUDE_DIRS}/mysql_version.h" ) - file( STRINGS "${MYSQL_LOCAL_INCLUDE_DIRS}/mysql_version.h" MYSQL_VERSION_H REGEX "^#define MYSQL_SERVER_VERSION[ \t]+\"[^\"]+\".*$" ) - string( REGEX REPLACE "^.*MYSQL_SERVER_VERSION[ \t]+\"([^\"]+)\".*$" "\\1" MYSQL_SERVER_VERSION "${MYSQL_VERSION_H}" ) - message( STATUS "Found MYSQL: ${MYSQL_LOCAL_LIBRARIES} (found version ${MYSQL_SERVER_VERSION})" ) - else() - message( STATUS "Found MYSQL: ${MYSQL_LOCAL_LIBRARIES}" ) - endif() - set( HAVE_LOCAL_MYSQL ON - CACHE BOOL "mysql client is available as a local copy") - mark_as_advanced( HAVE_LOCAL_MYSQL ) -else() - foreach( _VAR MYSQL_LOCAL_LIBRARIES MYSQL_LOCAL_INCLUDE_DIRS ) - if( NOT "${_VAR}" ) - set( MISSING_VARS ${MISSING_VARS} ${_VAR} ) - endif() - endforeach() - message( STATUS "Could NOT find MYSQL (missing: ${MISSING_VARS})" ) - unset( HAVE_LOCAL_MYSQL CACHE ) -endif() -message( STATUS "Detecting local MYSQL - done" ) -endif( WIN32 ) - - -# -# system -# -message( STATUS "Detecting system MYSQL" ) -unset( MYSQL_LIBRARIES CACHE ) -unset( MYSQL_INCLUDE_DIRS CACHE ) -find_package( MYSQL ) -set( MYSQL_SYSTEM_LIBRARIES "${MYSQL_LIBRARIES}" - CACHE PATH "system mysql libraries" ) -set( MYSQL_SYSTEM_INCLUDE_DIRS "${MYSQL_INCLUDE_DIRS}" - CACHE PATH "system mysql include directories" ) -mark_as_advanced( MYSQL_SYSTEM_LIBRARIES ) -mark_as_advanced( MYSQL_SYSTEM_INCLUDE_DIRS ) - -if( MYSQL_SYSTEM_LIBRARIES AND MYSQL_SYSTEM_INCLUDE_DIRS ) - set( HAVE_SYSTEM_MYSQL ON - CACHE BOOL "mysql client is available on the system" ) - mark_as_advanced( HAVE_SYSTEM_MYSQL ) -else() - unset( HAVE_SYSTEM_MYSQL CACHE ) -endif() -message( STATUS "Detecting system MYSQL - done" ) - - -# -# configure -# -CONFIGURE_WITH_LOCAL_OR_SYSTEM( MYSQL ) |