Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2023 00:05:52 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: c4278f42a264 - main - devel/vexcl: fix build without libomp
Message-ID:  <202303130005.32D05qxe080575@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=c4278f42a264a755e0e1a1c71c92d4d6653cd919

commit c4278f42a264a755e0e1a1c71c92d4d6653cd919
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-13 00:03:01 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-13 00:03:01 +0000

    devel/vexcl: fix build without libomp
    
    CMake Error at /usr/local/share/cmake/Modules/FindOpenMP.cmake:261 (try_compile):
      Failed to generate test project build system.
    Call Stack (most recent call first):
      /usr/local/share/cmake/Modules/FindOpenMP.cmake:537 (_OPENMP_GET_FLAGS)
      CMakeLists.txt:207 (find_package)
---
 devel/vexcl/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/devel/vexcl/Makefile b/devel/vexcl/Makefile
index e8fc63eb8bcc..4de66b02bee6 100644
--- a/devel/vexcl/Makefile
+++ b/devel/vexcl/Makefile
@@ -17,6 +17,9 @@ BUILD_DEPENDS=	${HPP_DEPENDS} \
 RUN_DEPENDS=	${HPP_DEPENDS}
 
 USES=		cmake:testing localbase:ldflags
+.if !exists(/usr/include/omp.h)
+USES+=		compiler:gcc-c++11-lib
+.endif
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	ddemidov



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