fix_copy_if_different ()

revert-24895-update_cub
Zhou Wei 5 years ago committed by GitHub
parent c84aa9c61f
commit 20147ace3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,13 +71,8 @@ if(WITH_PYTHON)
set(tmp_impl_file ${impl_file}.tmp)
if(WIN32)
add_custom_command(TARGET op_function_generator
POST_BUILD
COMMAND "${CMAKE_BINARY_DIR}/paddle/fluid/pybind/${CMAKE_BUILD_TYPE}/op_function_generator"
"${tmp_impl_file}"
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${tmp_impl_file} ${impl_file}
COMMENT "copy_if_different ${impl_file}"
VERBATIM
add_custom_command(TARGET op_function_generator POST_BUILD
COMMAND ${CMAKE_BINARY_DIR}/paddle/fluid/pybind/${CMAKE_BUILD_TYPE}/op_function_generator ${impl_file}
)
if(${CBLAS_PROVIDER} STREQUAL MKLML)

Loading…
Cancel
Save