Remove dependency on commandline/ from oenv.cpp
[alexxy/gromacs.git] / share / template / cmake / FindGROMACS.cmakein
index c8830815f20770e9829723d189dfad528ef2b822..84a0fa6ed18591dd0718ace7f99bda9e46d7f92f 100644 (file)
@@ -115,10 +115,10 @@ if (GROMACS_LIBRARY)
     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)