[Groonga-mysql-commit] mroonga/mroonga at c52cefb [master] Add MRN_BUILD_FOR_EMBEDDED_SERVER build option

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Aug 11 20:20:06 JST 2015


Kouhei Sutou	2015-08-11 20:20:06 +0900 (Tue, 11 Aug 2015)

  New Revision: c52cefb6ccd63727d9af89999562d14ea7d346b5
  https://github.com/mroonga/mroonga/commit/c52cefb6ccd63727d9af89999562d14ea7d346b5

  Message:
    Add MRN_BUILD_FOR_EMBEDDED_SERVER build option
    
    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

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+8 -0)
===================================================================
--- CMakeLists.txt    2015-08-09 20:06:30 +0900 (ff62617)
+++ CMakeLists.txt    2015-08-11 20:20:06 +0900 (7a95e42)
@@ -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")
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index