git: c1efc7b0236b - main - misc/lightgbm: fix build without libomp by disabling OpenMP there
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Feb 2024 11:50:01 UTC
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