Closed njzjz closed 1 week ago
source/CMakeLists.txt (1)
`203-204`: The changes to how `PyTorch_LIBRARY_PATH` is determined are an improvement, enhancing flexibility and accuracy in locating the library.Verification successful
--- The new method for setting `PyTorch_LIBRARY_PATH` appears to be integrated correctly within the `BACKEND_LIBRARY_PATH` usage across various CMake configuration files. This change enhances the build system's flexibility and accuracy in locating the PyTorch library without causing any unintended side effects. - `source/CMakeLists.txt`: The new method directly affects `BACKEND_LIBRARY_PATH`, which is consistently used across multiple CMakeLists.txt files to set `INSTALL_RPATH`.Scripts executed
The following scripts were executed for the analysis: --- Script: ```shell #!/bin/bash # Description: Verify if the new method for setting PyTorch_LIBRARY_PATH affects other configurations. # Test: Search for usages of `PyTorch_LIBRARY_PATH`. Expect: No unexpected references or configurations. rg --type cmake $'PyTorch_LIBRARY_PATH' --files-with-matches ``` Length of output: 81 --- --- Script: ```shell #!/bin/bash # Extract lines containing `PyTorch_LIBRARY_PATH` from `source/CMakeLists.txt` for detailed review rg --type cmake 'PyTorch_LIBRARY_PATH' source/CMakeLists.txt ``` Length of output: 196 --- --- Script: ```shell #!/bin/bash # Search for usages of `BACKEND_LIBRARY_PATH` within CMake configuration files to ensure correct usage rg --type cmake 'BACKEND_LIBRARY_PATH' ``` Length of output: 1381
The previous
PyTorch_LIBRARY_PATH
in #3636 is wrong:BACKEND_INCLUDE_DIRS
is a list of paths instead of a single path.Summary by CodeRabbit