TBB issues cause installation errors

When I installed Geant4, when I run make after completing the configure, the following error occurred:

/usr/include/tbb/global_control.h:25:2: error: #error Set TBB_PREVIEW_GLOBAL_CONTROL before including global_control.h
 #error Set TBB_PREVIEW_GLOBAL_CONTROL before including global_control.h

My system is CentOS8. Before I installed Geant4, I have installed tbb and tbb-devel through the yum command. Is it necessary to manually set environment variables after tbb installation is complete?