Skip to content

Commit 3342533

Browse files
committed
FIX: correct copying for bindings always flatten
1 parent 067f3b7 commit 3342533

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if(WIN32)
8080
if(open3d_type STREQUAL "SHARED_LIBRARY")
8181
message(STATUS "Copying Open3D.dll to ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>")
8282
add_custom_command(TARGET ${SHARED_LIB_NAME} POST_BUILD
83-
COMMAND ${CMAKE_COMMAND} -E copy_if_different
83+
COMMAND ${CMAKE_COMMAND} -E copy
8484
$<TARGET_FILE:Open3D::Open3D>
8585
$<TARGET_FILE_DIR:${SHARED_LIB_NAME}>)
8686
endif()
@@ -151,7 +151,7 @@ if (BUILD_PYTHON_MODULE)
151151

152152
# copy the pyd file to the pypi directory
153153
add_custom_command(TARGET ${PYBINDMODULE_NAME} POST_BUILD
154-
COMMAND ${CMAKE_COMMAND} -E copy_if_different
154+
COMMAND ${CMAKE_COMMAND} -E copy
155155
$<TARGET_FILE:${PYBINDMODULE_NAME}>
156156
${PYPI_DIR}
157157
)
@@ -161,7 +161,7 @@ if (BUILD_PYTHON_MODULE)
161161
foreach(file ${files})
162162
message(STATUS "Copying ${file} to ${TARGET_DLL_PYPI_DIR}")
163163
add_custom_command(TARGET ${PYBINDMODULE_NAME} POST_BUILD
164-
COMMAND ${CMAKE_COMMAND} -E copy_if_different
164+
COMMAND ${CMAKE_COMMAND} -E copy
165165
${file}
166166
${TARGET_DLL_PYPI_DIR}
167167
)

0 commit comments

Comments
 (0)