C_COMPILER_VERSION is not defined before CMake 2.8.8, so the logic
and reporting was wrong. However, we already have a work-around.
Change-Id: If34deadf3a912d48e204d80cc5be7718c151e39d
set(GMX_SOFTWARE_INVSQRT OFF CACHE BOOL "Disabled for regressiontests reference builds" FORCE)
set(GMX_THREAD_MPI OFF OFF CACHE BOOL "Disabled for regressiontests reference builds" FORCE)
+ # C_COMPILER_VERSION is not defined automatically for CMake below 2.8.8,
+ # so we call the GROMACS work-around for that
+ include(gmxGetCompilerInfo)
+ get_compiler_version()
if(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR NOT "${C_COMPILER_VERSION}" MATCHES "4.7")
message(WARNING "Reference values for regressiontests should use Gromacs compiled with "
- "gcc-4.7, but your configuration is using ${CMAKE_C_COMPILER_ID}-${C_COMPILER_VERSION}.")
+ "gcc 4.7, but your configuration is using ${CMAKE_C_COMPILER_ID}-${C_COMPILER_VERSION}.")
endif()
endif()