Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2024 12:01:30 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: b71891cb2555 - main - science/openmc: don't enable OPENMP without libomp
Message-ID:  <202408041201.474C1UDB013332@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=b71891cb2555b0f8bc6e0bd360070fb14da01a01

commit b71891cb2555b0f8bc6e0bd360070fb14da01a01
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-08-02 09:07:54 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-08-04 12:00:50 +0000

    science/openmc: don't enable OPENMP without libomp
---
 science/openmc/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/science/openmc/Makefile b/science/openmc/Makefile
index 40968e6beedc..33a890944bd3 100644
--- a/science/openmc/Makefile
+++ b/science/openmc/Makefile
@@ -29,7 +29,7 @@ CMAKE_TESTING_ON=	OPENMC_BUILD_TESTS # tests are broken, see https://github.com/
 BINARY_ALIAS=	git=false
 
 OPTIONS_DEFINE=		LIBMESH MPI OPENMP
-OPTIONS_DEFAULT=	MPI OPENMP
+OPTIONS_DEFAULT=	MPI
 
 LIBMESH_DESC=		Support for libMesh unstructured mesh tallies
 LIBMESH_CMAKE_BOOL=	OPENMC_USE_LIBMESH
@@ -41,6 +41,10 @@ MPI_RUN_DEPENDS=	mpich>0:net/mpich
 
 OPENMP_CMAKE_BOOL=	OPENMC_USE_OPENMP
 
+.if exists(/usr/include/omp.h)
+OPTIONS_DEFAULT+=	OPENMP
+.endif
+
 post-install:
 	${RM} -r ${STAGEDIR}${DOCSDIR}
 



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