Commit efbd4bb0 authored by Sergei Golubchik's avatar Sergei Golubchik

cmake: fix warnings when PLUGIN_MROONGA=NO

parent d33c8831
...@@ -392,11 +392,9 @@ else() ...@@ -392,11 +392,9 @@ else()
endif() endif()
if(GROONGA_NORMALIZER_MYSQL_FOUND) if(GROONGA_NORMALIZER_MYSQL_FOUND)
set_property(TARGET mroonga APPEND PROPERTY add_definitions("-DWITH_GROONGA_NORMALIZER_MYSQL=1")
COMPILE_DEFINITIONS "WITH_GROONGA_NORMALIZER_MYSQL=1")
if(MRN_GROONGA_NORMALIZER_MYSQL_EMBED) if(MRN_GROONGA_NORMALIZER_MYSQL_EMBED)
set_property(TARGET mroonga APPEND PROPERTY add_definitions("-DMRN_GROONGA_NORMALIZER_MYSQL_EMBEDDED")
COMPILE_DEFINITIONS "MRN_GROONGA_NORMALIZER_MYSQL_EMBEDDED")
else() else()
set_property(TARGET mroonga APPEND PROPERTY set_property(TARGET mroonga APPEND PROPERTY
COMPILE_DEFINITIONS "GROONGA_NORMALIZER_MYSQL_PLUGIN_NAME=\"normalizers/mysql\"") COMPILE_DEFINITIONS "GROONGA_NORMALIZER_MYSQL_PLUGIN_NAME=\"normalizers/mysql\"")
...@@ -404,8 +402,7 @@ if(GROONGA_NORMALIZER_MYSQL_FOUND) ...@@ -404,8 +402,7 @@ if(GROONGA_NORMALIZER_MYSQL_FOUND)
endif() endif()
if(MRN_GROONGA_EMBED) if(MRN_GROONGA_EMBED)
set_property(TARGET mroonga APPEND PROPERTY add_definitions("-DMRN_GROONGA_EMBEDDED")
COMPILE_DEFINITIONS "MRN_GROONGA_EMBEDDED")
endif() endif()
set(MRN_DEFAULT_PARSER "" CACHE STRING set(MRN_DEFAULT_PARSER "" CACHE STRING
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment