--- opensubdiv/osd/CMakeLists.txt.orig 2025-10-24 17:23:59 UTC +++ opensubdiv/osd/CMakeLists.txt @@ -128,6 +128,8 @@ if(OPENMP_FOUND ) if (CMAKE_COMPILER_IS_GNUCXX) list(APPEND PLATFORM_CPU_LIBRARIES gomp) + else() + list(APPEND PLATFORM_CPU_LIBRARIES OpenMP::OpenMP_CXX) endif() endif() @@ -146,10 +148,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