--- a/functorch/CMakeLists.txt 2024-11-10 11:18:29.151992840 +0100 +++ b/functorch/CMakeLists.txt 2024-11-10 11:20:19.642389982 +0100 @@ -42,4 +42,4 @@ if(NOT ${TORCH_PYTHON_LINK_FLAGS} STREQUAL "") set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS ${TORCH_PYTHON_LINK_FLAGS}) endif() -install(TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}") +install(TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_INSTALL_LIBDIR}")