Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2023 00:05:33 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: 46493bc89a1e - main - devel/zfp: fix build without libomp
Message-ID:  <202303130005.32D05Xnu080215@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=46493bc89a1efd47e528f9b1bf6c61209e346a95

commit 46493bc89a1efd47e528f9b1bf6c61209e346a95
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-13 00:02:15 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-13 00:02:15 +0000

    devel/zfp: fix build without libomp
    
    Disable OpenMP without libomp available.
---
 devel/zfp/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/zfp/Makefile b/devel/zfp/Makefile
index 6f3cfd774349..1538cfd2a7bd 100644
--- a/devel/zfp/Makefile
+++ b/devel/zfp/Makefile
@@ -13,6 +13,10 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USES=		cmake:testing
 USE_LDCONFIG=	yes
 
+.if !exists(/usr/include/omp.h)
+CMAKE_OFF=	ZFP_WITH_OPENMP
+.endif
+
 LDFLAGS+=	-lm
 
 .include <bsd.port.mk>



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