Skip to content

Commit

Permalink
Replace rm by remove_directory since cmake 3.16 does not support rm i…
Browse files Browse the repository at this point in the history
…n cmake -E command
  • Loading branch information
allanleal committed Aug 8, 2022
1 parent 9128519 commit b9aa01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/package/CMakeLists.txt
Expand Up @@ -7,7 +7,7 @@ add_custom_target(autodiff-setuptools ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/autodiff ${CMAKE_CURRENT_BINARY_DIR}/autodiff
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:autodiff4py> ${CMAKE_CURRENT_BINARY_DIR}/autodiff
COMMAND ${PYTHON_EXECUTABLE} setup.py --quiet build --force
COMMAND ${CMAKE_COMMAND} -E rm ${CMAKE_CURRENT_BINARY_DIR}/autodiff/$<TARGET_FILE_NAME:autodiff4py>
COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_CURRENT_BINARY_DIR}/autodiff/$<TARGET_FILE_NAME:autodiff4py>
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

# Ensure the path where the python package is installed is not empty
Expand Down

0 comments on commit b9aa01b

Please sign in to comment.