Require 2015 version for MSVC
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 16 Feb 2016 22:29:17 +0000 (23:29 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 10 Mar 2016 12:41:09 +0000 (13:41 +0100)
commitf6cc9b282b0e82380ef116b8d86bb4be554db4c0
treea44da720c35d173b074820406d08a292e4e64daa
parent2d0247f6a60c810d883b0ed1ad42ef326e87dbf8
Require 2015 version for MSVC

C++11 support is best in this compiler in its latest version, which is
an acceptable compromise for this platform.

This is not good for a CUDA build, which won't officially support MSVC
2015 until CUDA 8, which is unlikely to be released before GROMACS
2016. Thus, there is likely to be a few months where CUDA-enabled
GROMACS 2016 cannot be built by a supported MSVC host compiler.

MSVC 2015 adds warnings for illegal implicit narrowing of double to
float, when used in a brace initializer. In some cases
* we intend the interpretation as real, which is now explicit
* we can just use double
* we can suppress the warning
* in some test code, it is more convenient to initialize as double and copy

Change-Id: Ic6b2f9165b6f1aaa3dc59ce05cd6ffb3abe8861c
17 files changed:
CMakeLists.txt
admin/builds/pre-submit-matrix.txt
docs/dev-manual/language-features.rst
docs/install-guide/index.rst
src/gromacs/fft/tests/fft.cpp
src/gromacs/fileio/oenv.cpp
src/gromacs/fileio/rgb.h
src/gromacs/gmxana/gmx_chi.cpp
src/gromacs/gmxana/hxprops.cpp
src/gromacs/gmxpreprocess/calch.cpp
src/gromacs/gmxpreprocess/x2top.cpp
src/gromacs/math/tests/invertmatrix.cpp
src/gromacs/mdlib/tests/settle.cpp
src/gromacs/random/tabulatednormaldistribution.cpp
src/gromacs/random/tabulatednormaldistribution.h
src/gromacs/simd/impl_ibm_vsx/impl_ibm_vsx_simd_double.h
src/gromacs/utility/basedefinitions.h