From nobody Mon Mar 13 00:05:45 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PZcPP744Jz3xqrD; Mon, 13 Mar 2023 00:05:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PZcPP5jxTz3Nlk; Mon, 13 Mar 2023 00:05:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678665945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lQ/9v67rmwJHAoN43PqBYJ3o8qKAOnoouS+PeU00yAk=; b=UuWrcXrzu/PS6qyPZMSOeYv+4t0bFBP8DoRiPNcTanNbLLCarU4B8SO/OW+mhaPlDbVd5l y/jGT11sQfyZUDpPapMgxQQiiTCM2oBe+tzUqCm05vhbnUdtBg1Kq16rfY0xU9d1JjyoMC ZCyvQqnmwOv+t9yfvEqCk8uDUFfMiCxcx7Yrgbi3yBTB2LeTsGiln3maFyjLpzh9q3/Y8t sJ6hjRnU+c4gbIzjrlilQN0HrQepgHKeG9BWbItnZy6SIAr3MJPSkuPgRijpU7WWwiPkN3 iFuEle1zSZK0BRZGBmMNlZsj5H7XL8goMWHo5xqPEoSAC2bbh6ibCQXHumo1yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678665945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lQ/9v67rmwJHAoN43PqBYJ3o8qKAOnoouS+PeU00yAk=; b=C1Cw3T52TQpxhdn1sbpo6nCPyPihhJCTcsaTReNbIXXDudLYKBebIc3x0u09Qf4TS3wEu+ fZBZnOy+1Hj4dxggIVux8EfDkNRzzoBI7jUDDnSJvBe0staRmBcJvKrLWKJkuMnB5xqBnn zVJ1OJ8r9V6NYFfiHtbEVG4tTaGFItrQxo2gC+ASuM3vqDDrfnkYWFkuQNkBtqaomG3bqM l/fKkQCsuQwvpKw0Ub3VHLw8PQ8/UyuSfdmAafLws/aDfDJTmchpxfBKFHCFZX5A49A32v X8un0Q4HiixWKVSRQmCUikRJdb4yN9qf4VJQtO7pi9uYqgM7R5InZEU1qT5aLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678665945; a=rsa-sha256; cv=none; b=CD/x9Mw074eViNknQIjBfq5E+2syhJ47ozj38hM1W8/uHh55l3+JE7KkYtJY20o3CckSSg DtsqcvF86CEMrlZic/Qq1euCYsH0hUPEU0JQizGaTu/gQcTle6lCUd2wZVvttxkHAr5VbK Pc6rIWpfNLnSjGpIHo6s/t0jo98a5NC1fu8TirQubR1odvTU6hPxJKqaWGbva936D9+IdR bB+7v+0Ys1dV2p43QZwYwym5o5k7bL2pfvZKazssOVTaSfGqe8IPEjTNNdojgyDZ1Pmbx9 +MEho2/ITf/T4CWx6adFzMyfvAa11Wb5ymu5rjcQXiSoSiVgI5zChzv88CQOEg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PZcPP4pvYzX5g; Mon, 13 Mar 2023 00:05:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32D05jVl080449; Mon, 13 Mar 2023 00:05:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32D05jn9080448; Mon, 13 Mar 2023 00:05:45 GMT (envelope-from git) Date: Mon, 13 Mar 2023 00:05:45 GMT Message-Id: <202303130005.32D05jn9080448@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 46742e35f18b - main - science/gdma: fix build without libomp List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 46742e35f18ba774fa326835d28d7a75ca4c447a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=46742e35f18ba774fa326835d28d7a75ca4c447a commit 46742e35f18ba774fa326835d28d7a75ca4c447a Author: Piotr Kubaj AuthorDate: 2023-03-13 00:02:48 +0000 Commit: Piotr Kubaj CommitDate: 2023-03-13 00:02:48 +0000 science/gdma: 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) cmake/autocmake_omp.cmake:30 (find_package) CMakeLists.txt:28 (include) --- science/gdma/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/science/gdma/Makefile b/science/gdma/Makefile index f6c77be58a91..2af8978ca9cd 100644 --- a/science/gdma/Makefile +++ b/science/gdma/Makefile @@ -17,7 +17,11 @@ GH_ACCOUNT= psi4 USE_LDCONFIG= yes CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON \ - -DENABLE_XHOST:BOOL=OFF \ - -DENABLE_OPENMP:BOOL=ON + -DENABLE_XHOST:BOOL=OFF +.if !exists(/usr/include/omp.h) +CMAKE_ARGS+= -DENABLE_OPENMP:BOOL=OFF +.else +CMAKE_ARGS+= -DENABLE_OPENMP:BOOL=ON +.endif .include