Generating issues with VC++ 2015.3 v140 toolset for desktop
Hello! I try to generate OpenCV CMake project with Visual Studio 14 2015 generator. Currently on my machine I have Visual Studio 2017 with VC++ 2015.3 v140 toolset for desktop. When I start generating, cmake just crashes without any error message. Buid dir just contains empty CMakeFiles folder. I've tried build the project with Visual Studio 15 2017 generator and it works fine. But with 2015 the issue still remains. This is my cmd output:
(cv2mkl_env_36) C:\libs\opencv-3.3.0\build\opencv\contrib_nonfree_MKL_VS17>"C:/Program Files/CMake/bin/cmake.exe" ^
Продолжить? -H"C:/libs/opencv-3.3.0" ^
Продолжить? -G "Visual Studio 14 2015 Win64"
CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:85 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:94 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:102 (cmake_policy):
The OLD behavior for policy CMP0046 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
(cv2mkl_env_36) C:\libs\opencv-3.3.0\build\opencv\contrib_nonfree_MKL_VS17>
```
Edited by Михаил Чаус