[Groonga-mysql-commit] mroonga/mroonga [master] cmake: set CMAKE_SOURCE_DIR for embedded storage engine

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Nov 16 11:00:26 JST 2012


HAYASHI Kentaro	2012-11-16 11:00:26 +0900 (Fri, 16 Nov 2012)

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

  Log:
    cmake: set CMAKE_SOURCE_DIR for embedded storage engine
    
    refs #1544

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+6 -1)
===================================================================
--- CMakeLists.txt    2012-11-15 19:06:46 +0900 (e939aa9)
+++ CMakeLists.txt    2012-11-16 11:00:26 +0900 (c71fbaf)
@@ -47,7 +47,12 @@ read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/lib/libmrn_need_mysql_sources.am
 string(REGEX REPLACE "([^;]+)" "lib/\\1"
   LIBMRN_NEED_MYSQL_SOURCES "${LIBMRN_NEED_MYSQL_SOURCES}")
 
-set(MYSQL_SOURCE_DIR "PATH" CACHE PATH "MySQL source directory")
+if(WITH_MROONGA_STORAGE_ENGINE)
+  set(MYSQL_SOURCE_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "MySQL source directory")
+else()
+  set(MYSQL_SOURCE_DIR "PATH" CACHE PATH "MySQL source directory")
+endif()
+
 set(MYSQL_INCLUDE_DIRS
   "${MYSQL_BUILD_DIR}/include"
   "${MYSQL_SOURCE_DIR}/sql"
-------------- next part --------------
HTML����������������������������...
Download 



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