Hello. Could you, please, help me to find out, what causes the problem.
I am following installation tutorial from here: https://pytorch.org/cppdocs/installing.html 2
But after command:
cmake -DCMAKE_PREFIX_PATH="C:\Program Files (x86)\LibTorch\libtorch-win-shared-with-deps-debug-1.5.1\libtorch" ..
… I get the following output:
============================
– Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Warning (dev) at C:/Program Files (x86)/LibTorch/libtorch-win-shared-with-deps-debug-1.5.1/libtorch/share/cmake/Torch/TorchConfig.cmake:39 (if):
if given arguments:
"ON"

An argument named “ON” appears in a conditional statement.  Policy CMP0012
is not set: if() recognizes numbers and boolean constants.  Run “cmake
–help-policy CMP0012” for policy details.  Use the cmake_policy command to
set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Program Files (x86)/LibTorch/libtorch-win-shared-with-deps-debug-1.5.1/libtorch/share/cmake/Torch/TorchConfig.cmake:53 (if):
if given arguments:
"NOT" "ON"

An argument named “ON” appears in a conditional statement.  Policy CMP0012
is not set: if() recognizes numbers and boolean constants.  Run “cmake
–help-policy CMP0012” for policy details.  Use the cmake_policy command to
set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Program Files (x86)/LibTorch/libtorch-win-shared-with-deps-debug-1.5.1/libtorch/share/cmake/Torch/TorchConfig.cmake:84 (if):
if given arguments:
"ON"

An argument named “ON” appears in a conditional statement.  Policy CMP0012
is not set: if() recognizes numbers and boolean constants.  Run “cmake
–help-policy CMP0012” for policy details.  Use the cmake_policy command to
set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Program Files (x86)/LibTorch/libtorch-win-shared-with-deps-debug-1.5.1/libtorch/share/cmake/Torch/TorchConfig.cmake:116 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted.  Run “cmake --help-policy CMP0054” for policy
details.  Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like “MSVC” will no longer be dereferenced when the policy
is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present.  A line of code such as
cmake_minimum_required(VERSION 3.18)

should be added at the top of the file.  The version specified may be lower
if you wish to support older CMake versions for this project.  For more
information run “cmake --help-policy CMP0000”.
This warning is for project developers.  Use -Wno-dev to suppress it.
– Configuring done
– Generating done
– Build files have been written to: F:/Ivan/My Programs/MyChessCpp/build