Date: Sun, 11 Feb 2024 11:50:01 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: c1efc7b0236b - main - misc/lightgbm: fix build without libomp by disabling OpenMP there Message-ID: <202402111150.41BBo1HR087849@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=c1efc7b0236ba9b1097d9d1c261bb63f793e7057 commit c1efc7b0236ba9b1097d9d1c261bb63f793e7057 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-02-09 21:36:38 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-02-11 11:48:59 +0000 misc/lightgbm: fix build without libomp by disabling OpenMP there --- misc/lightgbm/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/lightgbm/Makefile b/misc/lightgbm/Makefile index d9b1bbd9ff89..6b954006ed01 100644 --- a/misc/lightgbm/Makefile +++ b/misc/lightgbm/Makefile @@ -26,6 +26,10 @@ CMAKE_TESTING_TARGET= CXXFLAGS+= -I${LOCALBASE}/include/eigen3 +.if !exists(/usr/include/omp.h) +CMAKE_ARGS+= -DUSE_OPENMP:BOOL=OFF +.endif + post-test: @${WRKSRC}/testlightgbm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402111150.41BBo1HR087849>