Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a function called after a MSG_comm_test.
[simgrid.git] / buildtools / Cmake / MaintainerMode.cmake
index 7106d99..a939d07 100644 (file)
@@ -119,7 +119,18 @@ else(HAVE_FLEXML AND HAVE_FLEX  AND SED_EXE)
        message("  FLEX :       ${FLEX_EXE}")
        message("FLEXML :       ${FLEXML_EXE}")
        message("   SED :       ${SED_EXE}")
-       message(FATAL_ERROR "Install flex or flexml or sed before use maintainer mode")
+       
+       if(NOT HAVE_FLEXML)
+               message("Install flexml before use maintainer mode.")
+       endif(NOT HAVE_FLEXML)
+       if(NOT HAVE_FLEX)
+               message("Install flex before use maintainer mode.")
+       endif(NOT HAVE_FLEX)
+       if(NOT SED_EXE)
+               message("Install sed before use maintainer mode.")
+       endif(NOT SED_EXE)
+       
+       message(FATAL_ERROR "Need to install all tools for maintainer mode !!!")
 endif(HAVE_FLEXML AND HAVE_FLEX  AND SED_EXE)
 
 if(PERL_EXE)