[Groonga-mysql-commit] mroonga/mroonga at 944d529 [master] cmake: check MySQL source directory existence

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 23 11:28:56 JST 2013


Kouhei Sutou	2013-04-23 11:28:56 +0900 (Tue, 23 Apr 2013)

  New Revision: 944d5297cbf98f3cbb416578d3190c872a888107
  https://github.com/mroonga/mroonga/commit/944d5297cbf98f3cbb416578d3190c872a888107

  Message:
    cmake: check MySQL source directory existence

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+7 -2)
===================================================================
--- CMakeLists.txt    2013-04-23 11:20:23 +0900 (c30b48f)
+++ CMakeLists.txt    2013-04-23 11:28:56 +0900 (de68f17)
@@ -1,4 +1,4 @@
-# Copyright(C) 2012 Kouhei Sutou <kou �� clear-code.com>
+# Copyright(C) 2012-2013 Kouhei Sutou <kou �� clear-code.com>
 # Copyright(C) 2013 Kentoku SHIBA
 #
 # This library is free software; you can redistribute it and/or
@@ -65,7 +65,12 @@ if(MRN_BUNDLED)
   set(MYSQL_BUILD_DIR ${MYSQL_SOURCE_DIR})
   set(MYSQL_CONFIG ${CMAKE_SOURCE_DIR}/scripts/mysql_config)
 else()
-  set(MYSQL_SOURCE_DIR "PATH" CACHE PATH "MySQL source directory")
+  set(MYSQL_SOURCE_DIR "/PATH/TO/MYSQL/SOURCE/DIRECTORY/"
+    CACHE PATH "MySQL source directory")
+  if(NOT EXISTS ${MYSQL_SOURCE_DIR})
+    message(FATAL_ERROR
+      "MySQL source directory (MYSQL_SOURCE_DIR) doesn't exist: <${MYSQL_SOURCE_DIR}>")
+  endif()
   set(MYSQL_BUILD_DIR ${MYSQL_SOURCE_DIR} CACHE PATH "MySQL build directory")
   set(MYSQL_CONFIG "mysql_config" CACHE PATH "mysql-config command path")
 endif()
-------------- next part --------------
HTML����������������������������...
Download 



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