diff --git a/src/plasma/CMakeLists.txt b/src/plasma/CMakeLists.txt index 6f20b1f7a..b3462ad41 100644 --- a/src/plasma/CMakeLists.txt +++ b/src/plasma/CMakeLists.txt @@ -28,7 +28,9 @@ add_dependencies(gen_plasma_fbs flatbuffers_ep) # Copy the fbs files from Arrow project to local directory. add_custom_command( OUTPUT ${PLASMA_FBS_SRC} - COMMAND cp -rf ${CMAKE_CURRENT_LIST_DIR}/../../thirdparty/build/arrow/cpp/src/plasma/format/ ${CMAKE_CURRENT_LIST_DIR}/format/ + COMMAND mkdir -p ${CMAKE_CURRENT_LIST_DIR}/format/ + COMMAND cp ${CMAKE_CURRENT_LIST_DIR}/../../thirdparty/build/arrow/cpp/src/plasma/format/plasma.fbs ${CMAKE_CURRENT_LIST_DIR}/format/ + COMMAND cp ${CMAKE_CURRENT_LIST_DIR}/../../thirdparty/build/arrow/cpp/src/plasma/format/common.fbs ${CMAKE_CURRENT_LIST_DIR}/format/ COMMENT "Copying ${PLASMA_FBS_SRC} to local" VERBATIM)