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
This commit is contained in:
ajanicijamd
2025-11-08 11:36:12 -05:00
committed by GitHub
parent 93947241d0
commit 2f9017f706
2 changed files with 5 additions and 5 deletions
@@ -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