diff --git a/CMakeLists.txt b/CMakeLists.txt index 20ca376e5..1ddfa261d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -284,7 +284,9 @@ if((NOT ZM_NO_CRASHTRACE) AND ((NOT HAVE_DECL_BACKTRACE) OR (NOT HAVE_EXECINFO_H endif((NOT ZM_NO_CRASHTRACE) AND ((NOT HAVE_DECL_BACKTRACE) OR (NOT HAVE_EXECINFO_H))) +set(ZM_MEM_MAPPED 0) if(NOT ZM_NO_MMAP) + set(ZM_MEM_MAPPED 1) set(ZM_MMAP_PERLPACKAGE "Sys::Mmap") endif(NOT ZM_NO_MMAP) # Check for Perl. Version checking is removed because its ignored before CMake 2.8.8 and it seems that Perl is being detected as 5.16. instead of 5.6.0 ?? diff --git a/zoneminder-config.cmake b/zoneminder-config.cmake index 3464d14a0..5011b6ce8 100644 --- a/zoneminder-config.cmake +++ b/zoneminder-config.cmake @@ -58,6 +58,9 @@ #cmakedefine HAVE_DECL_MD5 1 #cmakedefine HAVE_DECL_GNUTLS_FINGERPRINT 1 +/* Few ZM options that are needed by the source code */ +#cmakedefine ZM_MEM_MAPPED 1 + /* Its safe to assume that signal return type is void. This is a fix for zm_signal.h */ #define RETSIGTYPE void