From 743f3b4a55caef01d10beedd9dbece3bc213697a Mon Sep 17 00:00:00 2001 From: Niall Lenihan Date: Wed, 12 Nov 2025 15:55:24 +1300 Subject: [PATCH] Remove libgomp.so link when building for TBB only. When building with `NO_TBB=OFF` and `NO_OMP=ON` the `osd_cpu_obj` objects target will be configured to link to `gomp`. When OpenMP is disabled, the omp-specific files (`ompEvaluator` and `ompKernel`) are not actually built, and therefore the link is not needed. Although this doesn't create problems in opensubdiv builds, downstream projects may face challenges as the link carries over through cmake to any project that links to opensubdiv. Signed-off-by: Niall Lenihan --- opensubdiv/osd/CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/opensubdiv/osd/CMakeLists.txt b/opensubdiv/osd/CMakeLists.txt index 4ee9074d5..537b8f7b6 100644 --- a/opensubdiv/osd/CMakeLists.txt +++ b/opensubdiv/osd/CMakeLists.txt @@ -147,10 +147,6 @@ if( TBB_FOUND ) list(APPEND PUBLIC_HEADER_FILES ${TBB_PUBLIC_HEADERS}) - if (CMAKE_COMPILER_IS_GNUCXX) - list(APPEND PLATFORM_CPU_LIBRARIES gomp) - endif() - list(APPEND PLATFORM_CPU_LIBRARIES TBB::tbb )