Skip to content

Commit 02e750c

Browse files
Improve handling of ZM_DB_TYPE
1 parent c02f5a8 commit 02e750c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,16 @@ set(ZM_CONTENTDIR "/var/lib/zoneminder" CACHE PATH
119119
set(ZM_FONTDIR "${CMAKE_INSTALL_FULL_DATADIR}/zoneminder/fonts" CACHE PATH
120120
"Location of the font files used for timestamping, default: <prefix>/${CMAKE_INSTALL_DATADIR}/zoneminder/fonts")
121121

122+
set(ZM_DB_TYPE "mysql" CACHE STRING
123+
"Type of database where the ZoneMinder database located, default: mysql")
122124
set(ZM_DB_HOST "localhost" CACHE STRING
123-
"Hostname where ZoneMinder database located, default: localhost")
125+
"Hostname where the ZoneMinder database located, default: localhost")
124126
set(ZM_DB_NAME "zm" CACHE STRING
125-
"Name of ZoneMinder database, default: zm")
127+
"Name of the ZoneMinder database, default: zm")
126128
set(ZM_DB_USER "zmuser" CACHE STRING
127-
"Name of ZoneMinder database user, default: zmuser")
129+
"Name of the ZoneMinder database user, default: zmuser")
128130
set(ZM_DB_PASS "zmpass" CACHE STRING
129-
"Password of ZoneMinder database user, default: zmpass")
131+
"Password of the ZoneMinder database user, default: zmpass")
130132
set(ZM_WEB_USER "" CACHE STRING
131133
"The user apache or the local web server runs on. Leave empty for automatic detection.
132134
If that fails, you can use this variable to force")
@@ -810,7 +812,6 @@ set(WEB_PREFIX "${ZM_WEBDIR}")
810812
set(CGI_PREFIX "${ZM_CGIDIR}")
811813
set(WEB_USER "${ZM_WEB_USER}")
812814
set(WEB_GROUP "${ZM_WEB_GROUP}")
813-
set(ZM_DB_TYPE "mysql")
814815
if(ZM_PERL_SEARCH_PATH)
815816
set(EXTRA_PERL_LIB "use lib '${ZM_PERL_SEARCH_PATH}'; # Include custom perl install path")
816817
else()

0 commit comments

Comments
 (0)