Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2023 00:05:34 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0245cf92ba84 - main - math/primecount: fix build without libomp
Message-ID:  <202303130005.32D05YdW080234@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0245cf92ba84717f51da9491591e3f57bc88852a

commit 0245cf92ba84717f51da9491591e3f57bc88852a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-13 00:02:17 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-13 00:02:17 +0000

    math/primecount: fix build without libomp
---
 math/primecount/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/primecount/Makefile b/math/primecount/Makefile
index d736a2629c21..28d0d32c2d58 100644
--- a/math/primecount/Makefile
+++ b/math/primecount/Makefile
@@ -21,6 +21,10 @@ USE_LDCONFIG=	yes
 CMAKE_ON=	BUILD_SHARED_LIBS
 CMAKE_OFF=	BUILD_LIBPRIMESIEVE BUILD_STATIC_LIBS
 
+.if !exists(/usr/local/omp.h)
+CMAKE_OFF+=	WITH_OPENMP
+.endif
+
 PLIST_SUB=	VER=${PORTVERSION}
 
 do-test:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303130005.32D05YdW080234>