FujiNetWIFI/fujinet-firmware
components_pc/libssh/ConfigureChecks.cmake
:190
check_function_exists(glob HAVE_GLOB)
check_function_exists(glob HAVE_GLOB)
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)
check_function_exists(glob HAVE_GLOB)
target_compile_definitions(os_features INTERFACE HAVE_GLOB)