aboutsummaryrefslogtreecommitdiff
path: root/cmake/showoptions.cmake
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-03-14 20:50:54 +0100
committerShauren <shauren.trinity@gmail.com>2021-09-06 21:01:48 +0200
commit376ac0eeba03cdad75fd8493afd647fcf6bff94e (patch)
tree93f531752f5dcab94b8e5e8f5347e6df72d17567 /cmake/showoptions.cmake
parent4a386b97d2094a6d67039c7068edbf26000bbf5e (diff)
Buildsystem: Separate strict database type checks from TRINITY_DEBUG/WITH_COREDEBUG option
(cherry picked from commit ddd60a948c432aaac1d9a9ff05c9cf22ada35813)
Diffstat (limited to 'cmake/showoptions.cmake')
-rw-r--r--cmake/showoptions.cmake11
1 files changed, 10 insertions, 1 deletions
diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake
index a4ed07dcaa8..07c78a06b6e 100644
--- a/cmake/showoptions.cmake
+++ b/cmake/showoptions.cmake
@@ -59,7 +59,7 @@ if( WITH_COREDEBUG )
message(" *** additional core debug logs have been enabled!")
message(" *** this setting doesn't help to get better crash logs!")
message(" *** in case you are searching for better crash logs use")
- message(" *** -DCMAKE_BUILD_TYPE=RelWithDebug")
+ message(" *** -DCMAKE_BUILD_TYPE=RelWithDebInfo")
message(" *** DO NOT ENABLE IT UNLESS YOU KNOW WHAT YOU'RE DOING!")
message("* Use coreside debug : Yes")
add_definitions(-DTRINITY_DEBUG)
@@ -111,6 +111,15 @@ if ( PERFORMANCE_PROFILING )
add_definitions(-DPERFORMANCE_PROFILING)
endif()
+if( WITH_STRICT_DATABASE_TYPE_CHECKS )
+ message("")
+ message(" *** WITH_STRICT_DATABASE_TYPE_CHECKS - WARNING!")
+ message(" *** Validates uses of database Get***() functions from Field class")
+ message(" *** invalid calls will result in returning value 0")
+ message(" *** NOT COMPATIBLE WITH MARIADB!")
+ add_definitions(-DTRINITY_STRICT_DATABASE_TYPE_CHECKS)
+endif()
+
if (BUILD_SHARED_LIBS)
message("")
message(" *** WITH_DYNAMIC_LINKING - INFO!")