Navigation Menu

Skip to content

Commit

Permalink
cmake: detect mysql_config for embedded storage engine
Browse files Browse the repository at this point in the history
refs #1544
  • Loading branch information
kenhys committed Nov 16, 2012
1 parent c7e39a0 commit a90e185
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Expand Up @@ -63,7 +63,12 @@ set(MYSQL_INCLUDE_DIRS

set(MYSQL_BUILD_DIR ${MYSQL_SOURCE_DIR} CACHE PATH "MySQL build directory")

set(MYSQL_CONFIG "PATH" CACHE PATH "mysql-config command path")
if(WITH_MROONGA_STORAGE_ENGINE)
set(MYSQL_CONFIG ${CMAKE_SOURCE_DIR}/scripts/mysql_config
CACHE PATH "mysql-config command path")
else()
set(MYSQL_CONFIG "PATH" CACHE PATH "mysql-config command path")
endif()
find_path(MYSQL_CONFIG "${MYSQL_CONFIG}")

macro(SET_MYSQL_CONFIG_VALUE OPTION VARIABLE)
Expand Down

0 comments on commit a90e185

Please sign in to comment.