[Groonga-mysql-commit] mroonga/mroonga at 714268e [master] cmake: use only bundled LZ4

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Aug 7 23:03:29 JST 2017


Kouhei Sutou	2017-08-07 23:03:29 +0900 (Mon, 07 Aug 2017)

  New Revision: 714268e8e9d44a2a66d6030960e9376f06fc07b6
  https://github.com/mroonga/mroonga/commit/714268e8e9d44a2a66d6030960e9376f06fc07b6

  Message:
    cmake: use only bundled LZ4

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+14 -0)
===================================================================
--- CMakeLists.txt    2017-08-07 22:35:22 +0900 (d670d44f)
+++ CMakeLists.txt    2017-08-07 23:03:29 +0900 (59f7fcfc)
@@ -106,6 +106,20 @@ if(MRN_GROONGA_BUNDLED)
     set(GROONGA_NORMALIZER_MYSQL_EMBED ON)
   endif()
 
+  file(READ "${MRN_BUNDLED_GROONGA_DIR}/bundled_lz4_version"
+    MRN_BUNDLED_LZ4_VERSION)
+  string(STRIP
+    "${MRN_BUNDLED_LZ4_VERSION}"
+    MRN_BUNDLED_LZ4_VERSION)
+  set(MRN_BUNDLED_LZ4_DIR
+    "${MRN_BUNDLED_GROONGA_DIR}/vendor/lz4-${GRN_BUNDLED_LZ4_VERSION}")
+  if(EXISTS ${MRN_BUNDLED_LZ4_DIR})
+    set(GRN_WITH_BUNDLED_LZ4 ON)
+    set(GRN_WITH_LZ4 "yes")
+  else()
+    set(GRN_WITH_LZ4 "no")
+  endif()
+
   add_subdirectory("${MRN_BUNDLED_GROONGA_RELATIVE_DIR}")
 else()
   set(MRN_GROONGA_EMBED OFF)
-------------- next part --------------
HTML����������������������������...
Descargar 



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