Browse Source

HADOOP-10573. fix hadoop native client CMakeLists.txt issue with older cmakes (Wenwu Peng via Colin Patrick McCabe)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HADOOP-10388@1592806 13f79535-47bb-0310-9956-ffa450edef68
Colin McCabe 11 years ago
parent
commit
8ce3b6e9be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hadoop-native-core/GenerateProtobufs.cmake

+ 1 - 1
hadoop-native-core/GenerateProtobufs.cmake

@@ -52,7 +52,7 @@ function(DECLARE_PROTOS OUTPUT_SRC_LIST GENERATOR_DIR INCLUDE_DIRS)
     set(${OUTPUT_SRC_LIST} ${CFILES} ${HFILES} PARENT_SCOPE)
 endfunction()
 
-get_filename_component(R "${CMAKE_CURRENT_LIST_DIR}/.." REALPATH)
+get_filename_component(R "${PROJECT_SOURCE_DIR}/.." REALPATH)
 
 # Common protobuf files.  In general, the other subprojects such as HDFS and
 # YARN may rely on definitions in these protobuf files.