From 5d5790fd8edefe0081045c3053d609804a20cc5c Mon Sep 17 00:00:00 2001 From: Dari Kimanius Date: Wed, 29 May 2024 14:24:15 +0100 Subject: [PATCH] Cache torch home path to prevent reassignement during install stage. --- cmake/FindCondaPython.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindCondaPython.cmake b/cmake/FindCondaPython.cmake index 26805f0a9..5436714d8 100644 --- a/cmake/FindCondaPython.cmake +++ b/cmake/FindCondaPython.cmake @@ -97,7 +97,7 @@ if (NOT PYTHON_EXE_PATH STREQUAL "") RESULT_VARIABLE PYTHON_RESULT ) if(EXISTS "${TORCH_HOME_PATH_OUTPUT}") - set(TORCH_HOME_PATH ${TORCH_HOME_PATH_OUTPUT}) + set(TORCH_HOME_PATH ${TORCH_HOME_PATH_OUTPUT} CACHE PATH "Path to Torch home directory for storage of trained models." FORCE) else () message( WARNING