[Groonga-commit] groonga/groonga at 88594b1 [master] cmake: support _EMBED parameter defined in parent CMakeList.txt

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 3 00:10:44 JST 2015


Kouhei Sutou	2015-02-03 00:10:44 +0900 (Tue, 03 Feb 2015)

  New Revision: 88594b115dd3feeddc733da5dab7a5749c8728a0
  https://github.com/groonga/groonga/commit/88594b115dd3feeddc733da5dab7a5749c8728a0

  Message:
    cmake: support _EMBED parameter defined in parent CMakeList.txt

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+6 -1)
===================================================================
--- CMakeLists.txt    2015-02-02 23:56:39 +0900 (6218e60)
+++ CMakeLists.txt    2015-02-03 00:10:44 +0900 (69d125e)
@@ -44,9 +44,14 @@ include(CheckCXXCompilerFlag)
 include(FindPkgConfig)
 include(${CMAKE_CURRENT_SOURCE_DIR}/build/cmake_modules/ReadFileList.cmake)
 
+if(DEFINED GRN_EMBED)
+  set(GRN_EMBED_DEFAULT ${GRN_EMBED})
+else()
+  set(GRN_EMBED_DEFAULT OFF)
+endif()
 option(GRN_EMBED
   "Build as a static library to embed into an application"
-  OFF)
+  ${GRN_EMBED_DEFAULT})
 
 set(BIN_DIR "bin")
 set(SBIN_DIR "sbin")
-------------- next part --------------
HTML����������������������������...
Download 



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