Mercurial > hg > orthanc
comparison OrthancServer/CMakeLists.txt @ 4366:6a39ca7083b9
New config option "MallocArenaMax" to control memory usage on GNU/Linux
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Dec 2020 09:32:39 +0100 |
parents | 799c0c527ced |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4365:3150306fb4ad | 4366:6a39ca7083b9 |
---|---|
282 | 282 |
283 ##################################################################### | 283 ##################################################################### |
284 ## Configuration of the C/C++ macros | 284 ## Configuration of the C/C++ macros |
285 ##################################################################### | 285 ##################################################################### |
286 | 286 |
287 check_symbol_exists(mallopt "malloc.h" HAVE_MALLOPT) | |
288 | |
289 if (HAVE_MALLOPT) | |
290 add_definitions(-DHAVE_MALLOPT=1) | |
291 else() | |
292 add_definitions(-DHAVE_MALLOPT=0) | |
293 endif() | |
294 | |
295 | |
287 if (STATIC_BUILD) | 296 if (STATIC_BUILD) |
288 add_definitions(-DORTHANC_STATIC=1) | 297 add_definitions(-DORTHANC_STATIC=1) |
289 else() | 298 else() |
290 add_definitions(-DORTHANC_STATIC=0) | 299 add_definitions(-DORTHANC_STATIC=0) |
291 endif() | 300 endif() |