From ded29e4243fac0ab0015570ed3875d8e179774f2 Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Tue, 18 Feb 2025 15:33:52 +0100 Subject: [PATCH] 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 --- cmake/FindSuiteSparse.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindSuiteSparse.cmake b/cmake/FindSuiteSparse.cmake index 49c089c0a..d3936bc20 100644 --- a/cmake/FindSuiteSparse.cmake +++ b/cmake/FindSuiteSparse.cmake @@ -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).