I am trying to get our continuous integration system working in a Windows Docker container.
We use CMake along with the Visual C++ compilers shipped with VS 2015. I have installed cmake-3.4.3-win32-x86 on the windows container, and also VS 2015 community with just the '/InstallSelectableItems', 'NativeLanguageSupport_VC', so just the C++ tools are installed. However, when I run cmake -G "Visual Studio 14 2015 Win64", I first get: The C compiler identification is unknown The CXX compiler identification is unknown But then I try running it again, and then the compiler is picked up. I know the recommendation is "run cmake in a VS developer command prompt", but I'm in a Docker container, so I can't pick my command prompt. I've tried running vcvarsall.bat in the container during the build before calling cmake -G, but it doesn't fix the issue. So my question is: exactly what does cmake look for to pick up the VS compilers? Does "cl.exe" need to be on the PATH? Does a certain environment variable need to be set? Or a registry setting? Thanks in advance, Eric Erhardt
-- 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
