File: CheckFunctions.cmake

package info (click to toggle)
capstats 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 416 kB
  • sloc: cpp: 498; sh: 163; makefile: 36
file content (15 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include(CheckFunctionExists)

check_function_exists(getopt_long HAVE_GETOPT_LONG)
check_function_exists(mallinfo HAVE_MALLINFO)
check_function_exists(strcasestr HAVE_STRCASESTR)
check_function_exists(strerror HAVE_STRERROR)
check_function_exists(strsep HAVE_STRSEP)
check_function_exists(sigset HAVE_SIGSET)

if (HAVE_SIGSET)
    set(SIG_FUNC sigset)
else ()
    set(SIG_FUNC signal)
    check_function_exists(sigaction HAVE_SIGACTION)
endif ()