Skip to content

Commit 99d3081

Browse files
author
Fszontagh
committed
fix: add missing build options for all modules
1 parent 9f0298f commit 99d3081

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
2323
option(BUILD_FASTCGI "Enable building FastCGI executable" ON)
2424
option(BUILD_MODULE_MONGODB "Enable MongoDB module" ON)
2525
option(BUILD_MODULE_MEMCACHED "Enable Memcached module" ON)
26+
option(BUILD_MODULE_CURL "Enable Curl module" ON)
27+
option(BUILD_MODULE_FORMAT "Enable Format module" ON)
28+
option(BUILD_MODULE_IMAGICK "Enable Imagick module" ON)
29+
option(BUILD_MODULE_XML2 "Enable Xml2 module" ON)
30+
option(BUILD_MODULE_MARIADB "Enable MariaDB module" ON)
2631
option(BUILD_TESTS "Build the test cases" OFF)
2732

2833

@@ -268,6 +273,12 @@ if(BUILD_MODULE_MEMCACHED)
268273
add_dynamic_module(Memcached)
269274
endif()
270275

276+
# Handle MariaDB module like other modules
277+
list(REMOVE_ITEM AVAILABLE_MODULES MariaDb)
278+
if(BUILD_MODULE_MARIADB)
279+
add_dynamic_module(MariaDb)
280+
endif()
281+
271282

272283
message(STATUS "APP_GIT_VERSION: ${APP_GIT_VERSION}")
273284
message(STATUS "APP_VERSION: ${CMAKE_PROJECT_VERSION}\n")

Modules/MariaDb/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if(NOT _MODULE_MARIADB)
1+
if(NOT BUILD_MODULE_MARIADB)
22
return()
33
endif()
44

0 commit comments

Comments
 (0)