Debian Codegraph @

compat/CMakeLists.txt

raw
1 file(GLOB_RECURSE COMPAT_HEADERS "*.h")
2 list(APPEND COMPAT_SOURCES "")
3
4 if(NOT HAVE_STRSEP)
5 list(APPEND COMPAT_SOURCES "strsep.c")
6 endif()
7
8 if(NOT HAVE_STRPTIME)
9 list(APPEND COMPAT_SOURCES "strptime.c")
10 endif()
11
12 # dev_to_tty is used in the process and process58 probes that are UNIX only
13 if(NOT HAVE_DEV_TO_TTY AND UNIX)
14 list(APPEND COMPAT_SOURCES "dev_to_tty.c")
15 endif()
16
17 if(COMPAT_SOURCES)
18 add_library(compat_object OBJECT ${COMPAT_HEADERS} ${COMPAT_SOURCES})
19 set_oscap_generic_properties(compat_object)
20 endif()