Re: [AMBER-Developers] Pmemd no longer compiling with older GCC (4.8.5)

From: David A Case <david.case.rutgers.edu>
Date: Wed, 26 Jan 2022 08:25:58 -0500

On Wed, Jan 26, 2022, Jamie Smith wrote:
>
>set(CMAKE_C_STANDARD_REQUIRED TRUE)
>set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

Thanks. As far as I can tell from Google, there is no comparable standard
for Fortran :-(

>
>if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
> if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
> message(FATAL_ERROR "Amber requires at least gcc-6.0")
> endif()
>endif()

It's already inside a block headed by if("${COMPILER}" STREQUAL GNU), but
maybe the more specific test you suggest is better.

Thanks for chiming in. How are things going for you?

....dac


_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Wed Jan 26 2022 - 05:30:02 PST
Custom Search