Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2023 15:27:50 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 54e2d9505098 - main - math/highs: Correct cmake file to fix failures in user code
Message-ID:  <202306161527.35GFRorl041630@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=54e2d9505098969e95bccd27bd03c09dcadd2f32

commit 54e2d9505098969e95bccd27bd03c09dcadd2f32
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-16 07:50:50 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-16 15:27:46 +0000

    math/highs: Correct cmake file to fix failures in user code
    
    Failure is in new MiniZinc version failing to link with highs.
---
 math/highs/Makefile                          |  1 +
 math/highs/files/patch-highs-config.cmake.in | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/math/highs/Makefile b/math/highs/Makefile
index 12f39bdab718..eeb78cfa5a19 100644
--- a/math/highs/Makefile
+++ b/math/highs/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	highs
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.5.3
+PORTREVISION=	1
 CATEGORIES=	math
 PKGNAMEPREFIX=	coin-or-
 
diff --git a/math/highs/files/patch-highs-config.cmake.in b/math/highs/files/patch-highs-config.cmake.in
new file mode 100644
index 000000000000..7212ab8d0f63
--- /dev/null
+++ b/math/highs/files/patch-highs-config.cmake.in
@@ -0,0 +1,13 @@
+- see https://github.com/ERGO-Code/HiGHS/issues/1329
+
+--- highs-config.cmake.in.orig	2023-06-16 07:34:37 UTC
++++ highs-config.cmake.in
+@@ -13,7 +13,7 @@ else()
+     include("${CMAKE_CURRENT_LIST_DIR}/highs-targets.cmake")
+   endif()
+ 
+-  set(HIGHS_LIBRARIES libhighs)
++  set(HIGHS_LIBRARIES highs)
+ endif() 
+ 
+ set(HIGHS_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")



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