Commit 978ce755 authored by Shawn Waldon's avatar Shawn Waldon

Disable TBB's implicit linking with #pragmas

This avoids forcing every library that includes a vtk header file to
link to tbb if vtk was built with this backend.
parent 29c24056
Pipeline #33136 passed with stage
......@@ -20,8 +20,17 @@
#include "vtkAtomicTypeConcepts.h"
#ifdef _MSC_VER
# pragma push_macro("__TBB_NO_IMPLICIT_LINKAGE")
# define __TBB_NO_IMPLICIT_LINKAGE 1
#endif
#include <tbb/atomic.h>
#ifdef _MSC_VER
# pragma pop_macro("__TBB_NO_IMPLICIT_LINKAGE")
#endif
#include <cstddef>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment