Skip to content

Commit

Permalink
Fix out-of-source build
Browse files Browse the repository at this point in the history
  • Loading branch information
hugary1995 committed Dec 6, 2023
1 parent 59d591c commit 7abf7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if(NOT DEFINED LIBTORCH_DIR)
if(Python_Interpreter_FOUND)
# Figure out the torch path
execute_process(
COMMAND "${Python_EXECUTABLE}" "scripts/find_torch.py"
COMMAND "${Python_EXECUTABLE}" "${NEML2_SOURCE_DIR}/scripts/find_torch.py"
OUTPUT_VARIABLE PYTORCH_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
Expand Down

0 comments on commit 7abf7b2

Please sign in to comment.