[Groonga-commit] groonga/groonga at 2857a34 [master] cmake: add missing "CURRENT"

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 25 11:59:36 JST 2013


Kouhei Sutou	2013-04-25 11:59:36 +0900 (Thu, 25 Apr 2013)

  New Revision: 2857a349ef4b7376478e9f607352d4a4ed366cb1
  https://github.com/groonga/groonga/commit/2857a349ef4b7376478e9f607352d4a4ed366cb1

  Message:
    cmake: add missing "CURRENT"
    
    Those paths are asssumed that they exist at the current directory not
    the top directory.

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+7 -7)
===================================================================
--- CMakeLists.txt    2013-04-25 11:15:51 +0900 (c49b886)
+++ CMakeLists.txt    2013-04-25 11:59:36 +0900 (72ed3b4)
@@ -16,12 +16,12 @@
 cmake_minimum_required(VERSION 2.6)
 project(groonga)
 
-file(READ "${CMAKE_SOURCE_DIR}/base_version" VERSION)
-if(EXISTS "${CMAKE_SOURCE_DIR}/version.sh")
-  file(READ "${CMAKE_SOURCE_DIR}/version.sh" GRN_VERSION)
+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")
-    execute_process(COMMAND "${CMAKE_SOURCE_DIR}/version-gen.sh")
+    execute_process(COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/version-gen.sh")
   endif()
   file(READ "${CMAKE_BINARY_DIR}/version.sh" GRN_VERSION)
 endif()
@@ -31,7 +31,7 @@ include(CheckIncludeFile)
 include(CheckFunctionExists)
 include(CheckLibraryExists)
 include(FindPkgConfig)
-include(${CMAKE_SOURCE_DIR}/build/cmake_modules/ReadFileList.cmake)
+include(${CMAKE_CURRENT_SOURCE_DIR}/build/cmake_modules/ReadFileList.cmake)
 
 set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
 set(LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
@@ -81,8 +81,8 @@ add_definitions(
 
 include_directories(
   ${CMAKE_BINARY_DIR}
-  ${CMAKE_SOURCE_DIR}
-  ${CMAKE_SOURCE_DIR}/include
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/include
   )
 
 macro(ac_check_headers header)
-------------- next part --------------
HTML����������������������������...
Download 



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