Browse Source

HDFS-10332. hdfs-native-client fails to build with CMake 2.8.11 or earlier. Contributed by Tibor Kiss

James 9 years ago
parent
commit
b9eeecc477

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt

@@ -68,7 +68,7 @@ endif(DOXYGEN_FOUND)
 function (copy_on_demand input_src_glob input_dest_dir)
   get_filename_component(src_glob ${input_src_glob} REALPATH)
   get_filename_component(dest_dir ${input_dest_dir} REALPATH)
-  get_filename_component(src_dir ${src_glob} DIRECTORY)
+  get_filename_component(src_dir ${src_glob} PATH)
   message(STATUS "Syncing ${src_glob} to ${dest_dir}")
 
   file(GLOB_RECURSE src_files ${src_glob})