ports/graphics/opensubdiv/files/patch-opensubdiv_CMakeLists.txt
Dima Panov 77a55dca0e graphics/opensubdiv: pet OpenMP handling (+)
Make OpenMP suppport OPTIONal
Add patches to pass OpenMP flags to consumers if enabled [1]
Mark OPENCL option as prevented to build examples
Bump PORTREVISION to force rebuild consumers with new flags

Submitted by:	Tatsuki Makino via ports ml
Approved by:	maintainer (implicit)
2022-10-19 19:05:01 +03:00

11 lines
356 B
Text

--- opensubdiv/CMakeLists.txt.orig 2022-09-26 18:17:44 UTC
+++ opensubdiv/CMakeLists.txt
@@ -45,6 +45,8 @@ if (NOT NO_LIB)
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()