From 2758b7e31db228c37635fa3fe2b387b7ac11c731 Mon Sep 17 00:00:00 2001 From: barracuda156 Date: Tue, 21 May 2024 10:33:53 +0800 Subject: [PATCH] octave-nurbs: depend on libomp only with clang --- octave/octave-nurbs/Portfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/octave/octave-nurbs/Portfile b/octave/octave-nurbs/Portfile index 4500a69528f76..19fe2d1533b77 100644 --- a/octave/octave-nurbs/Portfile +++ b/octave/octave-nurbs/Portfile @@ -16,4 +16,8 @@ checksums rmd160 8155f91d25a2e235963a1d74c837744080ab2086 \ sha256 a74666a1e204b9feda22c9792b87939239221fd816383bc39f75db72b62a209b \ size 124419 -depends_lib port:libomp +compiler.openmp_version 2.5 + +if {[string match *clang* ${configure.compiler}]} { + depends_lib port:libomp +}