File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -253,15 +253,17 @@ if(WITH_GPU)
253253 set (URL "https://paddlepaddledeps.bj.bcebos.com/externalErrorMsg.tar.gz" CACHE STRING "" FORCE)
254254 file_download_and_uncompress(${URL} "externalError" MD5 c0749523ebb536eb7382487d645d9cd4) # download file externalErrorMsg.tar.gz
255255 if (WITH_TESTING)
256- # copy externalErrorMsg.pb for unittest 'enforce_test'
256+ # copy externalErrorMsg.pb, just for unittest can get error message correctly.
257257 set (SRC_DIR ${THIRD_PARTY_PATH} /externalError/data)
258258 if (WIN32 AND (NOT "${CMAKE_GENERATOR} " STREQUAL "Ninja" ))
259- set (DST_DIR ${CMAKE_BINARY_DIR} /paddle/fluid/third_party/externalError/data)
259+ set (DST_DIR1 ${CMAKE_BINARY_DIR} /paddle/fluid/third_party/externalError/data)
260260 else ()
261- set (DST_DIR ${CMAKE_BINARY_DIR} /paddle/third_party/externalError/data)
261+ set (DST_DIR1 ${CMAKE_BINARY_DIR} /paddle/third_party/externalError/data)
262262 endif ()
263+ set (DST_DIR2 ${CMAKE_BINARY_DIR} /python/paddle/include /third_party/externalError/data)
263264 add_custom_command (TARGET download_externalError POST_BUILD
264- COMMAND ${CMAKE_COMMAND} -E copy_directory ${SRC_DIR} ${DST_DIR}
265+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${SRC_DIR} ${DST_DIR1}
266+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${SRC_DIR} ${DST_DIR2}
265267 COMMENT "copy_directory from ${SRC_DIR} to ${DST_DIR} " )
266268 endif ()
267269endif (WITH_GPU)
You can’t perform that action at this time.
0 commit comments