From f9c6e7b43db0c3e250f6fcde354d23825d83e81d Mon Sep 17 00:00:00 2001 From: zaid tahir Date: Wed, 10 May 2023 10:13:18 -0400 Subject: [PATCH] Update FindTBB.cmake Replaced line 187 "file(READ "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h" _tbb_version_file)" with "file(READ "/usr/include/oneapi/tbb/version.h" _tbb_version_file)" since latest version of tbb does not contain the file "tbb_stddef.h" which causes errors and failure in compilation of OpenFPGA. Replacing with this line solved the issue and OpenFPGA was compiled on Ubuntu 22.04. --- cmake/modules/FindTBB.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/modules/FindTBB.cmake b/cmake/modules/FindTBB.cmake index 0a1a5bb77f..a432131c23 100644 --- a/cmake/modules/FindTBB.cmake +++ b/cmake/modules/FindTBB.cmake @@ -184,7 +184,8 @@ if(NOT TBB_FOUND) ################################## if(TBB_INCLUDE_DIRS) - file(READ "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h" _tbb_version_file) + file(READ "/usr/include/oneapi/tbb/version.h" _tbb_version_file) + # file(READ "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h" _tbb_version_file) string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" TBB_VERSION_MAJOR "${_tbb_version_file}") string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1"