From b9eeecc477ead34b8c350043bbf62386b0af18e4 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 27 Apr 2016 11:31:48 -0400 Subject: [PATCH] HDFS-10332. hdfs-native-client fails to build with CMake 2.8.11 or earlier. Contributed by Tibor Kiss --- .../src/main/native/libhdfspp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt index 6f248f06186..77f63c03a7b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt +++ b/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})