JulNadeauCA/libagar
CMakeChecks.cmake
:1608
check_c_source_compiles("
#include <string.h>
#include <glob.h>
#include <stdio.h>
int
main(int argc, char *argv[])
{
glob_t gl;
int rv, i;
char *s = NULL;
rv = glob(\"~/foo\", GLOB_TILDE, NULL, &gl);
for (i = 0; i < gl.gl_pathc; i++) { s = gl.gl_pathv[i]; }
return (rv != 0 && s != NULL);
}
" HAVE_GLOB)