[Groonga-commit] groonga/groonga at fe68139 [master] cmake: don't run version-gen.sh if the source isn't git cloned source

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 10 11:11:38 JST 2014


Kouhei Sutou	2014-03-10 11:11:38 +0900 (Mon, 10 Mar 2014)

  New Revision: fe681392c4fb7f9638bd3af2ad3be33984cd773c
  https://github.com/groonga/groonga/commit/fe681392c4fb7f9638bd3af2ad3be33984cd773c

  Message:
    cmake: don't run version-gen.sh if the source isn't git cloned source

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+3 -3)
===================================================================
--- CMakeLists.txt    2014-03-10 00:17:41 +0900 (b1054f5)
+++ CMakeLists.txt    2014-03-10 11:11:38 +0900 (a832a46)
@@ -25,11 +25,11 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/version.sh")
   file(READ "${CMAKE_CURRENT_SOURCE_DIR}/version.sh" GRN_VERSION)
 else()
   if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/version.sh")
-    if(WIN32)
-      set(GRN_VERSION "${VERSION}")
-    else()
+    if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
       execute_process(COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/version-gen.sh")
       file(READ "${CMAKE_CURRENT_BINARY_DIR}/version.sh" GRN_VERSION)
+    else()
+      set(GRN_VERSION "${VERSION}")
     endif()
   endif()
 endif()
-------------- next part --------------
HTML����������������������������...
Download 



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