[Groonga-commit] groonga/groonga-normalizer-mysql at 591aeff [master] cmake: support _EMBED parameter defined in parent CMakeList.txt

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 3 00:07:37 JST 2015


Kouhei Sutou	2015-02-03 00:07:37 +0900 (Tue, 03 Feb 2015)

  New Revision: 591aeff68f8b83db6731ae725644a940a319e2cb
  https://github.com/groonga/groonga-normalizer-mysql/commit/591aeff68f8b83db6731ae725644a940a319e2cb

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

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+7 -1)
===================================================================
--- CMakeLists.txt    2015-02-02 23:03:12 +0900 (0005db2)
+++ CMakeLists.txt    2015-02-03 00:07:37 +0900 (3577572)
@@ -18,9 +18,15 @@
 cmake_minimum_required(VERSION 2.6)
 project(groonga-normalizer-mysql)
 
+if(DEFINED GROONGA_NORMALIZER_MYSQL_EMBED)
+  set(GROONGA_NORMALIZER_MYSQL_EMBED_DEFAULT
+    ${GROONGA_NORMALIZER_MYSQL_EMBED})
+else()
+  set(GROONGA_NORMALIZER_MYSQL_EMBED_DEFAULT OFF)
+endif()
 option(GROONGA_NORMALIZER_MYSQL_EMBED
   "Build as a static library to embed into an application"
-  OFF)
+  ${GROONGA_NORMALIZER_MYSQL_EMBED_DEFAULT})
 
 file(READ "${CMAKE_CURRENT_SOURCE_DIR}/version" VERSION)
 
-------------- next part --------------
HTML����������������������������...
Download 



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