cmake HAVE_GLOB examples

FujiNetWIFI/fujinet-firmware components_pc/libssh/ConfigureChecks.cmake :190

check_function_exists(glob HAVE_GLOB)

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)

bareos/bareos core/cmake/BareosCheckFunctions.cmake :58

check_function_exists(glob HAVE_GLOB)

rcornwell/sims cmake/os-features.cmake :105

target_compile_definitions(os_features INTERFACE HAVE_GLOB)