https://github.com/Kitware/CMake
Raw File
Tip revision: e1e6e105215172ec37b3faf7f929c8506e285297 authored by Bill Hoffman on 01 June 2006, 13:38:12 UTC
ENH: change the version number to match the release for cygwin
Tip revision: e1e6e10
check_clean.c.in
#include <stdio.h>

int main()
{
  /* The list of files to check.  */
  const char* files[] =
    {
      @CHECK_FILES@
      0
    };

  /* No file should exist.  */
  const char** f = files;
  int result = 0;
  for(; *f; ++f)
    {
    FILE* pf = fopen(*f, "rb");
    if(pf)
      {
      fclose(pf);
      fprintf(stderr, "File \"%s\" exists!", *f);
      result = 1;
      }
    }
  return result;
}
back to top