cmake check_function_exists() examples

ornladios/ADIOS2 thirdparty/enet/enet/CMakeLists.txt :77

check_function_exists(getnameinfo HAS_GETNAMEINFO)

ornladios/ADIOS2 thirdparty/enet/enet/CMakeLists.txt :81

check_function_exists(fcntl HAS_FCNTL)

ornladios/ADIOS2 thirdparty/enet/enet/CMakeLists.txt :82

check_function_exists(inet_pton HAS_INET_PTON)

ornladios/ADIOS2 thirdparty/EVPath/EVPath/CMakeLists.txt :640

CHECK_FUNCTION_EXISTS(getdomainname HAVE_GETDOMAINNAME)

liballeg/allegro5 CMakeLists.txt :523

check_function_exists(mkstemp ALLEGRO_HAVE_MKSTEMP)

liballeg/allegro5 CMakeLists.txt :526

check_function_exists(sched_yield ALLEGRO_HAVE_SCHED_YIELD)

liballeg/allegro5 CMakeLists.txt :529

check_function_exists(ftello ALLEGRO_HAVE_FTELLO)

liballeg/allegro5 CMakeLists.txt :534

check_function_exists(_fseeki64 ALLEGRO_HAVE_FSEEKI64)

ccache/ccache cmake/GenerateConfigurationFile.cmake :41

check_function_exists(${func} ${func_var})

HEASARC/cfitsio CMakeLists.txt :112

CHECK_FUNCTION_EXISTS("connect" CMAKE_HAVE_CONNECT)

mono/corefx src/Native/Unix/System.Security.Cryptography.Native/configure.cmake :12

check_function_exists(
    EC_GF2m_simple_method
    HAVE_OPENSSL_EC2M)

mono/corert src/Native/Runtime/unix/configure.cmake :27

check_function_exists(clock_nanosleep HAVE_CLOCK_NANOSLEEP)

curl/curl CMakeLists.txt :186

# 'check_function_exists()' detections (possibly more), by detecting

curl/curl CMakeLists.txt :1744

check_function_exists("poll"          HAVE_POLL)  # poll.h

curl/curl CMakeLists.txt :1757

check_function_exists("utimes"        HAVE_UTIMES)

curl/curl CMakeLists.txt :1787

check_function_exists("setlocale"       HAVE_SETLOCALE)

curl/curl CMakeLists.txt :1788

check_function_exists("setrlimit"       HAVE_SETRLIMIT)

curl/curl CMakeLists.txt :1819

check_function_exists("mach_absolute_time" HAVE_MACH_ABSOLUTE_TIME)

cp2k/dbcsr cmake/FindBLAS.cmake :210

check_function_exists("${_name}_" ${_prefix}${_combined_name}_WORKS)

FreeGLUTProject/freeglut CMakeLists.txt :538

CHECK_FUNCTION_EXISTS(XParseGeometry   HAVE_XPARSEGEOMETRY)

FreeRDP/FreeRDP winpr/CMakeLists.txt :240

check_function_exists(getpwuid_r WINPR_HAVE_GETPWUID_R)

OSGeo/gdal cmake/helpers/configure.cmake :159

check_function_exists(sigaction HAVE_SIGACTION)

OSGeo/gdal cmake/helpers/configure.cmake :173

check_function_exists(ftell64 HAVE_FTELL64)

OSGeo/gdal cmake/helpers/configure.cmake :187

check_function_exists(fseeko64 HAVE_FSEEKO64)

OSGeo/gdal cmake/helpers/configure.cmake :217

check_function_exists(ftello HAVE_FTELLO)

OSGeo/gdal frmts/gtiff/CMakeLists.txt :108

check_function_exists(JxlEncoderInitExtraChannelInfo HAVE_JxlEncoderInitExtraChannelInfo)

OSGeo/gdal frmts/jpegxl/CMakeLists.txt :21

check_function_exists(JxlEncoderSetFrameDistance HAVE_JxlEncoderSetFrameDistance)

HDFGroup/hdf4 config/cmake/JPEG/CMakeLists.txt :41

CHECK_FUNCTION_EXISTS (const             HAVE_CONST)

HDFGroup/hdf5 config/ConfigureChecks.cmake :420

CHECK_FUNCTION_EXISTS (vasprintf         ${HDF_PREFIX}_HAVE_VASPRINTF)

HDFGroup/hdf5 config/cmake/ZLIB/CMakeLists.txt :92

check_function_exists (fseeko HAVE_FSEEKO)

InsightSoftwareConsortium/ITK Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeLists.txt :41

#CHECK_FUNCTION_EXISTS(strncasecmp GDCM_HAVE_STRNCASECMP)

InsightSoftwareConsortium/ITK Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeLists.txt :44

CHECK_FUNCTION_EXISTS(strptime    GDCM_HAVE_STRPTIME)

InsightSoftwareConsortium/ITK Modules/ThirdParty/HDF5/src/itkhdf5/config/cmake/ConfigureChecks.cmake :394

CHECK_FUNCTION_EXISTS (gettextinfo       ${HDF_PREFIX}_HAVE_GETTEXTINFO)

InsightSoftwareConsortium/ITK Modules/ThirdParty/HDF5/src/itkhdf5/config/cmake/ConfigureChecks.cmake :406

CHECK_FUNCTION_EXISTS (alarm             ${HDF_PREFIX}_HAVE_ALARM)

InsightSoftwareConsortium/ITK Modules/ThirdParty/HDF5/src/itkhdf5/config/cmake/ConfigureChecks.cmake :407

CHECK_FUNCTION_EXISTS (fcntl             ${HDF_PREFIX}_HAVE_FCNTL)

InsightSoftwareConsortium/ITK Modules/ThirdParty/HDF5/src/itkhdf5/config/cmake/ConfigureChecks.cmake :421

CHECK_FUNCTION_EXISTS (symlink           ${HDF_PREFIX}_HAVE_SYMLINK)

InsightSoftwareConsortium/ITK Modules/ThirdParty/HDF5/src/itkhdf5/config/cmake/ConfigureChecks.cmake :426

CHECK_FUNCTION_EXISTS (waitpid           ${HDF_PREFIX}_HAVE_WAITPID)

InsightSoftwareConsortium/ITK Modules/ThirdParty/MINC/src/libminc/CMakeLists.txt :128

CHECK_FUNCTION_EXISTS(tempnam  HAVE_TEMPNAM)

InsightSoftwareConsortium/ITK Modules/ThirdParty/MINC/src/libminc/CMakeLists.txt :134

CHECK_FUNCTION_EXISTS(strdup   HAVE_STRDUP)

3MFConsortium/lib3mf Libraries/libressl/CMakeLists.txt :207

check_function_exists(strlcat HAVE_STRLCAT)

3MFConsortium/lib3mf Libraries/libressl/CMakeLists.txt :226

check_function_exists(strnlen HAVE_STRNLEN)

3MFConsortium/lib3mf Libraries/libressl/CMakeLists.txt :237

check_function_exists(timegm HAVE_TIMEGM)

3MFConsortium/lib3mf Libraries/libressl/CMakeLists.txt :272

check_function_exists(getprogname HAVE_GETPROGNAME)

PJK/libcbor src/CMakeLists.txt :42

check_function_exists(ldexp LDEXP_AVAILABLE)

libgd/libgd CMakeLists.txt :72

CHECK_FUNCTION_EXISTS(sin SIN_FUNCTION_EXISTS)

libical/libical ConfigureChecks.cmake :56

check_function_exists(
  _access
  HAVE__ACCESS
) #Windows <io.h>

libical/libical ConfigureChecks.cmake :72

check_function_exists(
  _snprintf
  HAVE__SNPRINTF
) #Windows <stdio.h>

libical/libical ConfigureChecks.cmake :88

check_function_exists(
  _stricmp
  HAVE__STRICMP
) #Windows <string.h>

libical/libical ConfigureChecks.cmake :109

check_function_exists(
  fork
  HAVE_FORK
) #Unix <unistd.h>

libical/libical ConfigureChecks.cmake :129

check_function_exists(
  localtime_r
  HAVE_LOCALTIME_R
) #Unix <time.h>

libical/libical ConfigureChecks.cmake :153

check_function_exists(
  fstat
  HAVE_FSTAT
) #Unix <sys/stat.h>,<sys/types.h>,<unistd.h>

intrepidcs/libicsneo third-party/libftdi/cmake/FindLibintl.cmake :29

check_function_exists(dgettext LIBINTL_LIBC_HAS_DGETTEXT)

Framstag/libosmscout cmake/features.cmake :131

check_function_exists(fseeko HAVE_FSEEKO)

Framstag/libosmscout cmake/features.cmake :133

check_function_exists(posix_fadvise HAVE_POSIX_FADVISE)

LibreSprite/LibreSprite src/base/CMakeLists.txt :10

check_function_exists(sched_yield HAVE_SCHED_YIELD)

librsync/librsync CMakeLists.txt :93

check_function_exists ( fseeko HAVE_FSEEKO )

libsndfile/libsndfile cmake/SndFileChecks.cmake :124

check_function_exists (fstat     		HAVE_FSTAT)

libsndfile/libsndfile cmake/SndFileChecks.cmake :136

check_function_exists (lrintf			HAVE_LRINTF)

libsndfile/libsndfile cmake/SndFileChecks.cmake :139

check_function_exists (ftruncate	HAVE_FTRUNCATE)

libsndfile/libsndfile cmake/SndFileChecks.cmake :144

check_function_exists (pipe			HAVE_PIPE)

libsndfile/libsndfile cmake/SndFileChecks.cmake :152

# check_function_exists (getpagesize	HAVE_GETPAGESIZE)

libsndfile/libsndfile cmake/SndFileChecks.cmake :154

# check_function_exists (realloc		HAVE_REALLOC)

libsndfile/libsndfile cmake/SndFileChecks.cmake :156

# check_function_exists (vsnprintf		HAVE_VSNPRINTF)

libspatialindex/libspatialindex CMakeLists.txt :80

check_function_exists(memcpy HAVE_MEMCPY)

libspatialindex/libspatialindex CMakeLists.txt :81

check_function_exists(bcopy HAVE_BCOPY)

LibVNC/libvncserver CMakeLists.txt :231

check_function_exists(mmap            LIBVNCSERVER_HAVE_MMAP)

LibVNC/libvncserver CMakeLists.txt :240

check_function_exists(select          LIBVNCSERVER_HAVE_SELECT)

luvit/luv deps/luajit.cmake :87

CHECK_FUNCTION_EXISTS(dlopen LUA_USE_DLOPEN)

MapServer/MapServer CMakeLists.txt :121

check_function_exists("strlen"  HAVE_STRLEN)

neovim/neovim config/CMakeLists.txt :61

check_function_exists(setenv HAVE_SETENV)

neovim/neovim config/CMakeLists.txt :68

check_function_exists(sigvec HAVE_SIGVEC)

neovim/neovim config/CMakeLists.txt :71

check_function_exists(utime HAVE_UTIME)

nghttp2/nghttp2 CMakeLists.txt :366

check_function_exists(_Exit     HAVE__EXIT)

openbabel/openbabel tools/CMakeLists.txt :39

CHECK_FUNCTION_EXISTS(${GETOPT} GETOPT_FOUND)

opencv/opencv 3rdparty/libtiff/CMakeLists.txt :187

check_function_exists(mmap       HAVE_MMAP)

opencv/opencv 3rdparty/libtiff/CMakeLists.txt :192

check_function_exists(strcasecmp HAVE_STRCASECMP)

opencv/opencv 3rdparty/libtiff/CMakeLists.txt :193

check_function_exists(strchr     HAVE_STRCHR)

opencv/opencv 3rdparty/libtiff/CMakeLists.txt :194

check_function_exists(strrchr    HAVE_STRRCHR)

uclouvain/openjpeg thirdparty/libtiff/CMakeLists.txt :137

CHECK_FUNCTION_EXISTS(getopt HAVE_GETOPT)

uclouvain/openjpeg thirdparty/libtiff/CMakeLists.txt :142

CHECK_FUNCTION_EXISTS(strcasecmp HAVE_STRCASECMP)

uclouvain/openjpeg thirdparty/libtiff/CMakeLists.txt :143

CHECK_FUNCTION_EXISTS(strchr HAVE_STRCHR)

uclouvain/openjpeg thirdparty/libz/CMakeLists.txt :43

CHECK_FUNCTION_EXISTS(fseeko HAVE_FSEEKO)

openscenegraph/OpenSceneGraph src/OpenThreads/pthreads/CMakeLists.txt :44

CHECK_FUNCTION_EXISTS(pthread_yield HAVE_PTHREAD_YIELD)

openturns/openturns CMakeLists.txt :452

check_function_exists("openblas_set_num_threads" OPENTURNS_HAVE_OPENBLAS_SET_NUM_THREADS)

ICLDisco/parsec CMakeLists.txt :510

check_function_exists(rand_r PARSEC_HAVE_RAND_R)

ICLDisco/parsec CMakeLists.txt :525

check_function_exists(getrusage PARSEC_HAVE_GETRUSAGE)

ICLDisco/parsec CMakeLists.txt :616

check_function_exists(MPI_Comm_set_info PARSEC_HAVE_MPI_30)

ICLDisco/parsec CMakeLists.txt :807

check_function_exists(shm_open PARSEC_HAVE_SHM_OPEN)

libressl/portable apps/ocspcheck/CMakeLists.txt :22

check_function_exists(memmem HAVE_MEMMEM)

qtwebkit/qtwebkit Source/WTF/wtf/PlatformQt.cmake :136

check_function_exists(clock_gettime CLOCK_GETTIME_EXISTS)

microsoft/vcpkg ports/libdatrie/CMakeLists.txt :46

check_function_exists(nl_langinfo HAVE_LANGINFO_CODESET)

kisli/vmime CMakeLists.txt :796

CHECK_FUNCTION_EXISTS(gmtime_r VMIME_HAVE_GMTIME_R)

movableink/webkit Source/cmake/WebKitFeatures.cmake :407

check_function_exists(${_function} ${_variable}_value)

wolfssl/wolfssl CMakeLists.txt :119

check_function_exists("getaddrinfo" HAVE_GETADDRINFO)

wolfssl/wolfssl CMakeLists.txt :120

check_function_exists("gettimeofday" HAVE_GETTIMEOFDAY)

wolfssl/wolfssl CMakeLists.txt :121

check_function_exists("gmtime_r" HAVE_GMTIME_R)

wolfssl/wolfssl CMakeLists.txt :123

check_function_exists("memset" HAVE_MEMSET)

emweb/wt src/http/CMakeLists.txt :12

CHECK_FUNCTION_EXISTS(strcasecmp HAVE_STRCASECMP)

gdraheim/zziplib zzip/CMakeLists.txt :72

check_function_exists ( strcasecmp ZZIP_HAVE_STRCASECMP )

gdraheim/zziplib zzip/CMakeLists.txt :84

check_function_exists ( pread ZZIP_HAVE_PREAD )