aboutsummaryrefslogtreecommitdiff
path: root/cmake/showoptions.cmake
diff options
context:
space:
mode:
authorclick <click@gonnamakeyou.com>2012-03-25 17:14:08 +0200
committerclick <click@gonnamakeyou.com>2012-03-25 17:14:08 +0200
commite2a92d4bbc1fd0033d368b2fc76a5d99760999a6 (patch)
tree69b048957bc788fb804a794ea2a3cad3da4d05fc /cmake/showoptions.cmake
parent4e6fce11122487bba265e3f34124312d6ea9fdac (diff)
Buildsystem/CMake: Add the ability to avoid linking the core with jemalloc on linux through using the -DNOJEM parameter.
WARNING: This is a developer flag only, and as such NOT documented elsewhere - we need this for valgrind and related tools. Again : YOU HAVE BEEN WARNED! DO NOT USE THIS FLAG UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!
Diffstat (limited to 'cmake/showoptions.cmake')
-rw-r--r--cmake/showoptions.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake
index 31e1b412b32..9cac1d82f4a 100644
--- a/cmake/showoptions.cmake
+++ b/cmake/showoptions.cmake
@@ -78,4 +78,10 @@ if( WIN32 )
endif()
endif( WIN32 )
-message("")
+if ( NOJEM )
+ message("")
+ message("*** WARNING: jemalloc linking has been disabled!")
+ message("*** Please note that this is for DEBUGGING WITH VALGRIND only!")
+ message("*** DO NOT DISABLE IT UNLESS YOU KNOW WHAT YOU'RE DOING!")
+endif()
+ message("")