Date: Tue, 14 Mar 2023 19:04:43 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: c7829a491fbb - main - graphics/gmic-qt: fix build without libomp Message-ID: <202303141904.32EJ4hoZ021716@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=c7829a491fbbbb7a2c89ebfeebd3a7d1159c311c commit c7829a491fbbbb7a2c89ebfeebd3a7d1159c311c Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-03-14 19:03:52 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-03-14 19:03:52 +0000 graphics/gmic-qt: 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:188 (find_package) --- graphics/gmic-qt/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/graphics/gmic-qt/Makefile b/graphics/gmic-qt/Makefile index a4279dfe6252..3b0c80b69cff 100644 --- a/graphics/gmic-qt/Makefile +++ b/graphics/gmic-qt/Makefile @@ -25,7 +25,12 @@ FLAVOR?= ${FLAVORS:[1]} krita_PKGNAMESUFFIX= -krita gimp_PKGNAMESUFFIX= -gimp -USES= cmake compiler:c++14-lang pkgconfig qt:5 xorg +USES= cmake pkgconfig qt:5 xorg +.if !exists(/usr/include/omp.h) +USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++14-lang +.endif USE_QT= core gui network widgets \ buildtools:build linguisttools:build qmake:build USE_XORG= ice sm x11 xext
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303141904.32EJ4hoZ021716>