Do not custom format TBB version

Recent TBB CMake package configurations do not define the
TBB_INTERFACE_VERSION variable. This causes the reported version to be
incomplete, i.e., the version looks as "(2022.0 / )". Use the CMake
specified package variable to report the identified version instead.

Change-Id: Ic7851c821217e20fd6673de5442808ea3d302f4a
This commit is contained in:
Sergiu Deitsch
2025-02-18 15:33:52 +01:00
parent 7d196b4e6a
commit ded29e4243
+1 -1
View File
@@ -332,7 +332,7 @@ if (TARGET SuiteSparse::SPQR)
find_package(TBB QUIET NO_MODULE)
if (TBB_FOUND)
message(STATUS "Found Intel Thread Building Blocks (TBB) library "
"(${TBB_VERSION_MAJOR}.${TBB_VERSION_MINOR} / ${TBB_INTERFACE_VERSION}). "
"(${TBB_VERSION}). "
"Assuming SuiteSparseQR was compiled with TBB.")
# Add the TBB libraries to the SuiteSparseQR libraries (the only
# libraries to optionally depend on TBB).