Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2023 00:05:39 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: 177577372293 - main - science/phonopy: fix build without libomp
Message-ID:  <202303130005.32D05dmk080341@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=1775773722936d8dd69887e9957b8fe36d0ee85b

commit 1775773722936d8dd69887e9957b8fe36d0ee85b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-13 00:02:37 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-13 00:02:37 +0000

    science/phonopy: fix build without libomp
    
    CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
    CMake Error at /usr/local/share/cmake/Modules/FindOpenMP.cmake:261 (try_compile):
      Failed to configure test project build system.
    Call Stack (most recent call first):
      /usr/local/share/cmake/Modules/FindOpenMP.cmake:537 (_OPENMP_GET_FLAGS)
      CMakeLists.txt:26 (find_package)
---
 science/phonopy/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/science/phonopy/Makefile b/science/phonopy/Makefile
index f1f7a48f31f5..ab3fdc335cb7 100644
--- a/science/phonopy/Makefile
+++ b/science/phonopy/Makefile
@@ -11,6 +11,9 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		cmake
+.if !exists(/usr/local/omp.h)
+USES+=		compiler:gcc-c++11-lib
+.endif
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes



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