-if(HAVE_SIMGRID_LIB AND HAVE_GRAS_H)
-else(HAVE_SIMGRID_LIB AND HAVE_GRAS_H)
- message(FATAL_ERROR "You need to install simgrid and set environment variable SIMGRID_ROOT!")
-endif(HAVE_SIMGRID_LIB AND HAVE_GRAS_H)
\ No newline at end of file
+if(SIMGRID_LIB AND SIMGRID_INCLUDES)
+else(SIMGRID_LIB AND SIMGRID_INCLUDES)
+ message(FATAL_ERROR "Unable to find both the library and the include files. Setting the environment variable SIMGRID_ROOT may help.")
+endif(SIMGRID_LIB AND SIMGRID_INCLUDES)
\ No newline at end of file