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
diff --git a/cmake/FindSuiteSparse.cmake b/cmake/FindSuiteSparse.cmake index 49c089c..d3936bc 100644 --- a/cmake/FindSuiteSparse.cmake +++ b/cmake/FindSuiteSparse.cmake
@@ -332,7 +332,7 @@ 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).