From 5f31dd6a29468ac310e749e52ac5b61af7463f9e Mon Sep 17 00:00:00 2001 From: coco875 <59367621+coco875@users.noreply.github.com> Date: Mon, 29 Jul 2024 01:31:37 +0200 Subject: [PATCH] dumb windows and linux difference (#25) --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85ac28c3b..388679067 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -555,7 +555,11 @@ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/torch ) ExternalProject_Get_Property(torch install_dir) -set(TORCH_EXECUTABLE ${install_dir}/src/Torch-build/$/torch) +if (MSVC) + set(TORCH_EXECUTABLE ${install_dir}/src/torch-build/$/torch) +else() + set(TORCH_EXECUTABLE ${install_dir}/src/torch-build/torch) +endif() message(STATUS "Torch executable path: ${TORCH_EXECUTABLE}") add_custom_target(