(Clion Window 10)Cmake setting failed, I have tried all kind of solutions

it throws: Torch Script Not found: torch;torch_library;C10_LIBRARY

code:
cmake_minimum_required(VERSION 3.5)
project(HappySugarLife)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_PREFIX_PATH ${Torch_DIR})

find_package(Torch REQUIRED)

set(SOURCE_FILES main.cpp)
set(Torch_DIR libtorch/share/cmake/Torch)

add_executable( HappySugarLife ${SOURCE_FILES} libtorch/lib)
target_link_libraries( HappySugarLife “${TORCH_LIBRARIES}”)



Here are the solutions that I have tried:






All failed to slove this problem.

CMAKE_PREFIX_PATH should be set to C:\Users\The Shape of Voice\CLionProjects\HappySugarLife\libtorch. Also, please ensure you are using MSVC as the compiler/generator.

Thank You, I will try it later.