mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
science/nlcglib: OPENMP option if OFF and ON is broken where OpenMP isn't available
This commit is contained in:
parent
81593f99c2
commit
f1ed1195fe
1 changed files with 8 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
PORTNAME= nlcglib
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.1.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= science
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
@ -16,10 +16,6 @@ LIB_DEPENDS= libkokkoscore.so:devel/kokkos \
|
|||
libopenblas.so:math/openblas
|
||||
TEST_DEPENDS= googletest>0:devel/googletest
|
||||
|
||||
.if !exists(/usr/include/omp.h)
|
||||
BROKEN= requires OpenMP support that is missing on this architecture
|
||||
.endif
|
||||
|
||||
USES= cmake:testing pkgconfig
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
|
@ -31,7 +27,13 @@ CMAKE_TESTING_ON= BUILD_TESTS # tests fail to compile, see https://github.com/si
|
|||
OPTIONS_DEFINE= OPENMP
|
||||
OPTIONS_SINGLE= MPI
|
||||
OPTIONS_SINGLE_MPI= MPICH OPENMPI
|
||||
OPTIONS_DEFAULT= MPICH OPENMP
|
||||
OPTIONS_DEFAULT= MPICH
|
||||
|
||||
.if exists(/usr/include/omp.h)
|
||||
OPTIONS_DEFAULT+= OPENMP
|
||||
.else
|
||||
OPENMP_BROKEN= requires OpenMP support that is missing on this architecture
|
||||
.endif
|
||||
|
||||
MPICH_USES= mpi:mpich
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue