Home | History | Annotate | Download | only in cmakescripts
      1 if(NOT MD5)
      2   message(FATAL_ERROR "MD5 not specified")
      3 endif()
      4 
      5 if(NOT FILE)
      6   message(FATAL_ERROR "FILE not specified")
      7 endif()
      8 
      9 file(MD5 ${FILE} MD5FILE)
     10 
     11 if(NOT MD5 STREQUAL MD5FILE)
     12 	message(FATAL_ERROR "MD5 of ${FILE} should be ${MD5}, not ${MD5FILE}.")
     13 else()
     14 	message(STATUS "${MD5}: OK")
     15 endif()
     16