[Groonga-commit] groonga/groonga at 3b5a126 [master] cmake: binary directory also needs "CURRENT"!

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 25 12:12:22 JST 2013


Kouhei Sutou	2013-04-25 12:12:22 +0900 (Thu, 25 Apr 2013)

  New Revision: 3b5a126c343c5ae97d3758d867f4f67136ece3b0
  https://github.com/groonga/groonga/commit/3b5a126c343c5ae97d3758d867f4f67136ece3b0

  Message:
    cmake: binary directory also needs "CURRENT"!

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+2 -2)
===================================================================
--- CMakeLists.txt    2013-04-25 11:59:36 +0900 (72ed3b4)
+++ CMakeLists.txt    2013-04-25 12:12:22 +0900 (4706181)
@@ -20,10 +20,10 @@ file(READ "${CMAKE_CURRENT_SOURCE_DIR}/base_version" VERSION)
 if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/version.sh")
   file(READ "${CMAKE_CURRENT_SOURCE_DIR}/version.sh" GRN_VERSION)
 else()
-  if(NOT EXISTS "${CMAKE_BINARY_DIR}/version.sh")
+  if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/version.sh")
     execute_process(COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/version-gen.sh")
   endif()
-  file(READ "${CMAKE_BINARY_DIR}/version.sh" GRN_VERSION)
+  file(READ "${CMAKE_CURRENT_BINARY_DIR}/version.sh" GRN_VERSION)
 endif()
 string(REGEX REPLACE "(^.*=|\n)" "" GRN_VERSION "${GRN_VERSION}")
 
-------------- next part --------------
HTML����������������������������...
Download 



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