From cb131255afeade6466623007c87412152c57443b Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Tue, 3 Aug 2021 08:07:09 +0300 Subject: [PATCH] Fixing cmake command removing temp data for ie_wheel (#6893) * Fixing cmake command removing temp data for ie_wheel * rm -> remove_directory Co-authored-by: Alexander Zhogov --- inference-engine/ie_bridges/python/wheel/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inference-engine/ie_bridges/python/wheel/CMakeLists.txt b/inference-engine/ie_bridges/python/wheel/CMakeLists.txt index 681954f2766d77..1b1931c08a493d 100644 --- a/inference-engine/ie_bridges/python/wheel/CMakeLists.txt +++ b/inference-engine/ie_bridges/python/wheel/CMakeLists.txt @@ -56,13 +56,13 @@ endif() add_custom_command(TARGET ie_wheel PRE_BUILD - COMMAND ${CMAKE_COMMAND} -E rm -rf "${CMAKE_CURRENT_BINARY_DIR}/site-packages" + COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/site-packages" COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} clean bdist_wheel --dist-dir ${CMAKE_BINARY_DIR}/wheels --build=${WHEEL_BUILD} --plat-name=${WHEEL_PLATFORM} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E rm "${CMAKE_CURRENT_SOURCE_DIR}/.env" + COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_SOURCE_DIR}/.env" WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" COMMENT "Building Python wheel ${WHEEL_PACKAGE_NAME}" VERBATIM