[CMake] test files generated by CheckIncludeFile are not ansi conform

Michael Biebl mbiebl at gmail.com
Mon May 15 06:29:50 EDT 2006


The template files for CheckIncludeFile are not ansi conform, this
means running with "CFLAGS=-Werror -Wstrict-prototypes" produces
failing tests.

The template file CheckIncludeFile.c.in and the one for cxx should
correctly read

#include <${CHECK_INCLUDE_FILE_VAR}>

int main(int argc, char *argv[])
{
  return 0;
}


Cheers,
Michael


More information about the CMake mailing list