Navigation Menu

Skip to content

Commit

Permalink
Add MRN_BUILD_FOR_EMBEDDED_SERVER build option
Browse files Browse the repository at this point in the history
If you can use Mroonga with embedded server, you must enable this build
option by -DMRN_BUILD_FOR_EMBEDDED_SERVER.

If you build Mroonga for embedded server, you can't use the built
Mroonga for non embedded server.

GitHub: #66
  • Loading branch information
kou committed Aug 11, 2015
1 parent 0f7c799 commit c52cefb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Expand Up @@ -387,6 +387,14 @@ else()
install(TARGETS mroonga DESTINATION "${MYSQL_PLUGIN_DIR}")
endif()

option(MRN_BUILD_FOR_EMBEDDED_SERVER
"Whether to build Mroonga for embedded server or not. You can't use Mroonga built for embedded server with non embedded server."
OFF)
if(MRN_BUILD_FOR_EMBEDDED_SERVER)
set_property(TARGET mroonga APPEND PROPERTY
COMPILE_DEFINITIONS "EMBEDDED_LIBRARY")
endif()

if(GROONGA_NORMALIZER_MYSQL_FOUND)
set_property(TARGET mroonga APPEND PROPERTY
COMPILE_DEFINITIONS "WITH_GROONGA_NORMALIZER_MYSQL=1")
Expand Down

0 comments on commit c52cefb

Please sign in to comment.