Windows 10 with Cmake 3.4.3 or 3.5.0. I have the following Visual C versions installed.
Microsoft Visual Studio 14.0 Microsoft Visual Studio 12.0 Microsoft Visual Studio 11.0 Visual C++ for Python I use the following script to build libssh2: setlocal set VER=1.7.0 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat" set PATH="c:\Program Files (x86)\CMake\bin";%PATH% if exist libssh2-%VER% rmdir /s /q libssh2-%VER% c:\unxutils\zcat libssh2-%VER%.tar.gz | c:\unxutils\tar xf - pushd libssh2-%VER% mkdir build.Release pushd build.Release rem configure cmake -G "Visual Studio 14 2015 Win64" .. -DOPENSSL_ROOT_DIR=c:\OpenSource64 rem build cmake --build . --config RelWithDebugInfo popd popd endlocal Cmake fails with: Build FAILED. "C:\Users\barry\Work\libssh2-1.7.0\build.Release\ALL_BUILD.vcxproj" (default target) (1) -> "C:\Users\barry\Work\libssh2-1.7.0\build.Release\ZERO_CHECK.vcxproj" (default target) (2) -> (PlatformPrepareForBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(55,5): error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using th e v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\barry\Work\libssh2-1.7.0\build.Release\ZERO_CHECK.vcxproj] 0 Warning(s) 1 Error(s) Why is CMAKE trying to use anything from VC 2010? Can I work around this bug? Removing VC 2010 is reasonable workaround. Barry -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake