diff options
author | Brecht Van Lommel <brecht> | 2021-02-10 20:17:23 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-02-10 21:32:24 +0300 |
commit | 677e63d51869bb89f2ca1adee2e8350ed379005d (patch) | |
tree | 70509efd6a2620f6dbebfd5e3f169a0bfe87e4d3 /source/blender/io/usd | |
parent | 69c7ffff8bbdaa585b51fe3e4e36a7f37b5759b7 (diff) |
TBB: fix deprecation warnings with newer TBB versions
* USD and OpenVDB headers use deprecated TBB headers, suppress all deprecation
warnings there since we have no control over them.
* For our own TBB includes, use the individual headers rather than the tbb.h that
includes everything to avoid warnings, rather than suppressing all.
This is in anticipation of the TBB 2020 upgrade in D10359. Ref D10361.
Diffstat (limited to 'source/blender/io/usd')
-rw-r--r-- | source/blender/io/usd/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/io/usd/CMakeLists.txt b/source/blender/io/usd/CMakeLists.txt index 79b15c60b94..6ea30f48a13 100644 --- a/source/blender/io/usd/CMakeLists.txt +++ b/source/blender/io/usd/CMakeLists.txt @@ -30,6 +30,9 @@ if(WIN32) endif() add_definitions(-DPXR_STATIC) +# USD headers use deprecated TBB headers, silence warning. +add_definitions(-DTBB_SUPPRESS_DEPRECATED_MESSAGES=1) + set(INC . ../common |