Fix build failure with Clang 20. (#1667)

* Modified for Clang

* Updated timemory version so it compiles with Clang 20

* Using TBB version 2018.6 for both GCC and Clang builds
此提交包含在:
ajanicijamd
2025-11-08 11:36:12 -05:00
提交者 GitHub
父節點 93947241d0
當前提交 2f9017f706
共有 2 個檔案被更改,包括 5 行新增5 行删除
+4
查看文件
@@ -32,7 +32,11 @@ add_executable(
)
option(USE_CLANG_OMP "Use the clang OpenMP if available" ON)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(OpenMP_C_FLAGS "-fopenmp=libomp")
set(OpenMP_CXX_FLAGS "-fopenmp=libomp")
find_package(OpenMP REQUIRED)
target_link_libraries(openmp-common PUBLIC OpenMP::OpenMP_CXX)
set(ROCPROFSYS_OPENMP_USING_LIBOMP_LIBRARY