Update FindTBB.cmake to work with latest MSVC.
MODIFY
thrust/cmake/FindTBB.cmake
thrust/cmake/FindTBB.cmake
@@ -236,7 +236,7 @@ if (WIN32 AND MSVC)
set(COMPILER_PREFIX "vc11")
elseif(MSVC_VERSION EQUAL 1800)
set(COMPILER_PREFIX "vc12")
- elseif(MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS_EQUAL 1925)
+ elseif(MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS_EQUAL 1929)
# 1900-1925 actually spans three Visual Studio versions:
# 1900 = VS 14.0 (v140 toolset) a.k.a. MSVC 2015
# 1910-1919 = VS 15.0 (v141 toolset) a.k.a. MSVC 2017
@@ -251,8 +251,9 @@ if (WIN32 AND MSVC)
# - https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html
# - https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering
message(AUTHOR_WARNING
- "Unrecognized MSVC version. Please update FindTBB.cmake. "
- "Some TBB_* values may need to be set manually."
+ "Unrecognized MSVC version (${MSVC_VERSION}). "
+ "Please update FindTBB.cmake. "
+ "Some TBB_* CMake variables may need to be set manually."
)
endif ()

Update FindTBB.cmake to work with latest MSVC.