Date: Mon, 13 Mar 2023 00:05:37 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: df2813dc3a86 - main - devel/libflatarray: fix build without libomp Message-ID: <202303130005.32D05bir080299@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=df2813dc3a86a0c6256b47948c9898041f873c96 commit df2813dc3a86a0c6256b47948c9898041f873c96 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-03-13 00:02:33 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-03-13 00:02:33 +0000 devel/libflatarray: 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) examples/CMakeLists.txt:1 (find_package) --- devel/libflatarray/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devel/libflatarray/Makefile b/devel/libflatarray/Makefile index d0d8ceac410b..d75903f95d80 100644 --- a/devel/libflatarray/Makefile +++ b/devel/libflatarray/Makefile @@ -15,7 +15,12 @@ BROKEN_armv7= test/estimate_optimum_short_vec_type_test.cpp:71:22: error: redefi BUILD_DEPENDS= boost-libs>=1.48:devel/boost-libs -USES= cmake compiler:c++14-lang +USES= cmake +.if !exists(/usr/include/omp.h) +USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++14-lang +.endif CMAKE_ARGS= -DWITH_CUDA:BOOL=FALSE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303130005.32D05bir080299>