diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c5c65f8a371..738914fee44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,6 +170,14 @@ option_defaults_init( _init_OPENSUBDIV ) +# TBB malloc is only supported on for windows currently +if(WIN32) + set(_init_TBB_MALLOC_PROXY ON) +else() + set(_init_TBB_MALLOC_PROXY OFF) +endif() + + # customize... if(UNIX AND NOT APPLE) # some of these libraries are problematic on Linux @@ -463,6 +471,7 @@ mark_as_advanced(WITH_ASSERT_ABORT) option(WITH_BOOST "Enable features depending on boost" ON) option(WITH_TBB "Enable features depending on TBB (OpenVDB, OpenImageDenoise, sculpt multithreading)" ON) +option(WITH_TBB_MALLOC_PROXY "Enable the TBB malloc replacement" ${_init_TBB_MALLOC_PROXY}) # Unit testsing option(WITH_GTESTS "Enable GTest unit testing" OFF) |