Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pt: Fix compilation with libtorch (#3405)
Backported from conda-forge/deepmd-kit-feedstock#71. 1. The rpath of libdeepmd_cc should contain the libtorch directory if it differs from the path of libdeepmd_cc. Setting `INSTALL_RPATH_USE_LINK_PATH` to `true` resolves the problem. 2. `${TORCH_CXX_FLAGS}` is empty in macOS, so the variable with quotes, i.e. `"${TORCH_CXX_FLAGS}"`, should be used. --------- Signed-off-by: Jinzhe Zeng <[email protected]>
- Loading branch information