# GvdB: $ENV{TBB_ARCH_PLATFORM} is set by the build script tbbvars[.bat|.sh|.csh]
if(NOT $ENV{TBB_ARCH_PLATFORM} STREQUAL "")
set(_TBB_LIBRARY_DIR
${_TBB_INSTALL_DIR}/$ENV{TBB_ARCH_PLATFORM}/lib
${_TBB_INSTALL_DIR}/lib/$ENV{TBB_ARCH_PLATFORM}
)
else(NOT $ENV{TBB_ARCH_PLATFORM} STREQUAL "")
# HH: deprecated
message(STATUS "[Warning] FindTBB.cmake: The use of TBB_ARCHITECTURE and TBB_COMPILER is deprecated and may not be supported in future versions. Please set $ENV{TBB_ARCH_PLATFORM} (using tbbvars.[bat|csh|sh]).")