message(FATAL_ERROR "Could not find init_mtop in the GROMACS library, take look at the error message in ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log to find out what was going wrong. This most likely means that your GROMACS version is too old, we need at least GROMACS 4.0.7.")
endif(NOT FOUND_GROMACS_INIT_MTOP)
set(GROMACS_VERSION 40000)
- check_library_exists("${GROMACS_LIBRARY};${GROMACS_DEP_LIBRARIES}" output_env_init "" FOUND_GROMACS_OUTPUT_ENV_INIT)
- if(FOUND_GROMACS_OUTPUT_ENV_INIT)
+ check_library_exists("${GROMACS_LIBRARY};${GROMACS_DEP_LIBRARIES}" output_env_done "" FOUND_GROMACS_OUTPUT_ENV_DONE)
+ if(FOUND_GROMACS_OUTPUT_ENV_DONE)
set(GROMACS_VERSION 40500)
- endif(FOUND_GROMACS_OUTPUT_ENV_INIT)
+ endif(FOUND_GROMACS_OUTPUT_ENV_DONE)
check_library_exists("${GROMACS_LIBRARY};${GROMACS_DEP_LIBRARIES}" gmx_nonbonded_setup "" FOUND_GROMACS_GMX_NONBONDED_SETUP)
if(FOUND_GROMACS_GMX_NONBONDED_SETUP)
set(GROMACS_VERSION 40600)