aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorclick <none@none>2010-09-17 20:36:29 +0200
committerclick <none@none>2010-09-17 20:36:29 +0200
commit726e5cf466329ca0e705fd0ca2fa44730ac6d79f (patch)
treeafa76022e354620ff92f93eae88f96d81e7d8153 /cmake
parent19a76020bc2083bf127f8579a694c66c4d4c64c5 (diff)
Buildsystem/Core: Add new build-flag WITH_SQLDEBUG - adds support for enabling/disabling SQL-query logging
--HG-- branch : trunk
Diffstat (limited to 'cmake')
-rw-r--r--cmake/options.cmake1
-rw-r--r--cmake/showoptions.cmake19
2 files changed, 14 insertions, 6 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake
index 00882d9bcb6..077eb17f637 100644
--- a/cmake/options.cmake
+++ b/cmake/options.cmake
@@ -16,4 +16,5 @@ option(USE_COREPCH "Use precompiled headers when compiling servers"
option(USE_SFMT "Use SFMT as random numbergenerator" 0)
option(WITH_WARNINGS "Show all warnings during compile" 0)
option(WITH_COREDEBUG "Include additional debug-code in core" 0)
+option(WITH_SQLDEBUG "Output SQL-queries to dedicated logfile" 0)
option(WITH_SQL "Copy SQL files during installation" 0)
diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake
index bb5cd1fe6b9..e8604eded46 100644
--- a/cmake/showoptions.cmake
+++ b/cmake/showoptions.cmake
@@ -38,12 +38,6 @@ else()
message("* Build map/vmap tools : No (default)")
endif()
-if( WITH_SQL )
- message("* Install SQL-files : Yes")
-else()
- message("* Install SQL-files : No (default)")
-endif()
-
if( USE_COREPCH )
message("* Build core w/PCH : Yes (default)")
else()
@@ -76,6 +70,13 @@ else()
message("* Use coreside debug : No (default)")
endif()
+if( WITH_SQLDEBUG )
+ message("* Use SQL-query logging : Yes")
+ add_definitions(-DSQLQUERY_LOG)
+else()
+ message("* Use SQL-query logging : No (default)")
+endif()
+
if( WIN32 )
if( USE_MYSQL_SOURCES )
message("* Use MySQL sourcetree : Yes (default)")
@@ -84,4 +85,10 @@ if( WIN32 )
endif()
endif( WIN32 )
+if( WITH_SQL )
+ message("* Install SQL-files : Yes")
+else()
+ message("* Install SQL-files : No (default)")
+endif()
+
message("")