Fix to bug 690: http://bugs.mariadb.com/show_bug.cgi?id=690
Updated the debian/rules file to use mysql_config instead of a hard-coded path.
This commit is contained in:
13
FindMySQLConfig.cmake
Normal file
13
FindMySQLConfig.cmake
Normal file
@ -0,0 +1,13 @@
|
||||
# This CMake file tries to find the the MySQL configuration tool
|
||||
# The following variables are set:
|
||||
# MYSQLCONFIG_FOUND - System has MySQL and the tool was found
|
||||
# MYSQLCONFIG_EXECUTABLE - The MySQL configuration tool executable
|
||||
find_program(MYSQLCONFIG_EXECUTABLE mysql_config)
|
||||
if(MYSQLCONFIG_EXECUTABLE MATCHES "MYSQLCONFIG_EXECUTABLE-NOTFOUND")
|
||||
message(FATAL_ERROR "Cannot find mysql_config.")
|
||||
set(MYSQLCONFIG_FOUND FALSE CACHE INTERNAL "")
|
||||
unset(MYSQLCONFIG_EXECUTABLE)
|
||||
else()
|
||||
message(STATUS "mysql_config found: ${MYSQLCONFIG_EXECUTABLE}")
|
||||
set(MYSQLCONFIG_FOUND TRUE CACHE INTERNAL "")
|
||||
endif()
|
Reference in New Issue
Block a user