[Groonga-commit] groonga/groonga [master] cmake: support LZO

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 13日 (金) 15:09:29 JST


Kouhei Sutou	2012-04-13 15:09:29 +0900 (Fri, 13 Apr 2012)

  New Revision: f984cd6ce7010cea9443fa93fbe0d52b976ca722

  Log:
    cmake: support LZO

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+9 -0)
===================================================================
--- CMakeLists.txt    2012-04-13 15:05:49 +0900 (e27d99b)
+++ CMakeLists.txt    2012-04-13 15:09:29 +0900 (494d84a)
@@ -72,6 +72,15 @@ if(UNIX)
   endif()
 endif()
 
+option(WITH_LZO "use LZO for data compression." OFF)
+if(WITH_LZO)
+  AC_CHECK_LIB(lzo2 lzo1_compress)
+  if (NOT HAVE_LZO2)
+    message(FATAL_ERROR "No liblzo2 found")
+  endif()
+  set(LZO_LIBS, "lzo2")
+endif()
+
 add_subdirectory(lib)
 add_subdirectory(src)
 




Groonga-commit メーリングリストの案内
Back to archive index