From c7e0ed831881629bdc578763a198345ebdeacc6b Mon Sep 17 00:00:00 2001 From: dzhwinter Date: Fri, 24 Aug 2018 17:50:09 +0800 Subject: [PATCH] inference lib --- cmake/inference_lib.cmake | 4 ++-- paddle/fluid/recordio/CMakeLists.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index bc36683a9fa..f97da29a007 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -32,8 +32,8 @@ function(copy TARGET) list(GET copy_lib_SRCS ${index} src) list(GET copy_lib_DSTS ${index} dst) add_custom_command(TARGET ${TARGET} PRE_BUILD - COMMAND mkdir -p "${dst}" - COMMAND cp -r "${src}" "${dst}" + COMMAND ${CMAKE_COMMAND} -E make_directory "${dst}" + COMMAND ${CMAKE_COMMAND} -E copy_directory "${src}" "${dst}" COMMENT "copying ${src} -> ${dst}") endforeach() endfunction() diff --git a/paddle/fluid/recordio/CMakeLists.txt b/paddle/fluid/recordio/CMakeLists.txt index f401c25dbfc..92e97a6c85d 100644 --- a/paddle/fluid/recordio/CMakeLists.txt +++ b/paddle/fluid/recordio/CMakeLists.txt @@ -1,5 +1,4 @@ # internal library. -message("why it hurts!") cc_library(header SRCS header.cc) cc_test(header_test SRCS header_test.cc DEPS header) cc_library(chunk SRCS chunk.cc DEPS snappystream snappy header zlib) -- GitLab