X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=e874c912d9c144a7a54b3674d9576f19cf7c16ea;hp=6412e14c0b325f0cfa50735b0e3107a6f3f32200;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hpb=4e96d123460d6363cf7274e36bd9357768eb86ad diff --git a/CMakeLists.txt b/CMakeLists.txt index 6412e14..e874c91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ ENDIF(APPLE) OPTION(DO_CHARSET_CONVERSION "Do charset conversion on sent messages to UTF-8. This requires libiconv." ON) OPTION(I_HAVE_READ_THE_README "I have fully read and understood the readme.txt." OFF) OPTION(ALTERNATE_CAPTCHA "Use alternate captcha. This requires the FreeImage library." OFF) +OPTION(QUERY_LOG "Log all database queries made by FMS." OFF) SET(FMS_SRC src/base64.cpp @@ -99,6 +100,7 @@ src/http/pages/peertrustpage.cpp src/http/pages/recentlyaddedpage.cpp src/http/pages/showcaptchapage.cpp src/http/pages/showimagepage.cpp +src/http/pages/showpendingmessagepage.cpp src/http/pages/versioninfopage.cpp src/nntp/extensiontrust.cpp src/nntp/nntpconnection.cpp @@ -274,3 +276,7 @@ ENDIF(ALTERNATE_CAPTCHA) IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") INCLUDE_DIRECTORIES(AFTER /usr/local/include) ENDIF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") + +IF(QUERY_LOG) + ADD_DEFINITIONS(-DQUERY_LOG) +ENDIF(QUERY_LOG)