freebsd-ports/graphics/opensubdiv/files/patch-opensubdiv_osd_CMakeLists.txt
Vladimir Druzenko f251a78efa graphics/opensubdiv: sort out Makefile, pet portclippy, fix build on 32bit
- Remove unnecessary libs from USE_GL and add required.
- Fix build on 32bit ARCHS, upstream issue:
https://github.com/PixarAnimationStudios/OpenSubdiv/issues/1198#issuecomment-2143940211
- Make options OPENMP (for supported ARCHS) and PTEX default.
- EXAMPLES and OPENCL can build together without errors.
- Remove NO_GL_TESTS - upstream removed it.
- Sort options and pet portclippy.

PR:		279472
Approved by:	Shane <FreeBSD@ShaneWare.Biz> (maintainer)
2024-06-03 13:46:50 +03:00

22 lines
585 B
Text

--- opensubdiv/osd/CMakeLists.txt.orig 2023-09-14 19:19:06 UTC
+++ opensubdiv/osd/CMakeLists.txt
@@ -81,6 +81,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()
@@ -99,10 +101,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