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)
12 lines
356 B
Plaintext
12 lines
356 B
Plaintext
--- 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()
|
|
|