misc: Move ZM_HAS_* defines to zoneminder-config.cmake

This commit is contained in:
Peter Keresztes Schmidt
2021-05-31 23:07:59 +02:00
parent f8b779dc25
commit ed7759897b
2 changed files with 3 additions and 4 deletions

View File

@@ -24,8 +24,4 @@
#define ZM_CONFIG_SUBDIR "@ZM_CONFIG_SUBDIR@" // Path to the ZoneMinder config subfolder
#define ZM_VERSION "@VERSION@" // ZoneMinder Version
#define ZM_HAS_V4L1 @ZM_HAS_V4L1@
#define ZM_HAS_V4L2 @ZM_HAS_V4L2@
#define ZM_HAS_V4L @ZM_HAS_V4L@
#endif // ZM_CONFIG_DATA_H

View File

@@ -67,6 +67,9 @@
/* Few ZM options that are needed by the source code */
#cmakedefine ZM_MEM_MAPPED 1
#cmakedefine ZM_HAS_V4L 1
#cmakedefine ZM_HAS_V4L1 1
#cmakedefine ZM_HAS_V4L2 1
/* Its safe to assume that signal return type is void. This is a fix for zm_signal.h */
#define RETSIGTYPE void