Navigation Menu

Skip to content

Commit

Permalink
cmake: don't require -DMYSQL_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 20, 2012
1 parent 20ab561 commit a725c7f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Expand Up @@ -61,9 +61,11 @@ macro(SET_MYSQL_CONFIG_VALUE OPTION VARIABLE)
string(STRIP ${MYSQL_CONFIG_OUTPUT} ${VARIABLE})
endmacro()

set_mysql_config_value("--plugindir" MYSQL_PLUGIN_DIR)
set_mysql_config_value("--cflags" MYSQL_CFLAGS)
set_mysql_config_value("--version" MYSQL_VERSION)
if(MYSQL_CONFIG)
set_mysql_config_value("--plugindir" MYSQL_PLUGIN_DIR)
set_mysql_config_value("--cflags" MYSQL_CFLAGS)
set_mysql_config_value("--version" MYSQL_VERSION)
endif()

include(FindPkgConfig)
pkg_check_modules(GROONGA REQUIRED "groonga >= ${REQUIRED_GROONGA_VERSION}")
Expand Down

0 comments on commit a725c7f

Please sign in to comment.