git: b406013dc750 - main - math/highs: Add workaround for bug in cmake scripts
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Mar 2025 03:54:34 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b406013dc7503792cc393635823e9047646c9589
commit b406013dc7503792cc393635823e9047646c9589
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-03-24 02:45:23 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-03-24 03:54:28 +0000
math/highs: Add workaround for bug in cmake scripts
... that fix some users.
Reported by: fallout
---
math/highs/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/math/highs/Makefile b/math/highs/Makefile
index 6be7f4c5345f..1b3e425c8b8d 100644
--- a/math/highs/Makefile
+++ b/math/highs/Makefile
@@ -1,6 +1,7 @@
PORTNAME= highs
DISTVERSIONPREFIX= v
DISTVERSION= 1.10.0
+PORTREVISION= 1
CATEGORIES= math
PKGNAMEPREFIX= coin-or-
@@ -19,8 +20,13 @@ GH_PROJECT= HiGHS
CMAKE_OFF= BUILD_TESTING
-post-install: # see https://github.com/ERGO-Code/HiGHS/issues/502
+post-install:
+ # see https://github.com/ERGO-Code/HiGHS/issues/502
${RM} -r ${STAGEDIR}${PREFIX}/external
+ # workaround for https://github.com/ERGO-Code/HiGHS/issues/2250
+ @${REINPLACE_CMD} \
+ -e 's|INTERFACE_INCLUDE_DIRECTORIES "/include;|INTERFACE_INCLUDE_DIRECTORIES "|' \
+ ${STAGEDIR}${PREFIX}/lib/cmake/highs/highs-targets.cmake
# tests as of 1.10.0: 100% tests passed, 0 tests failed out of 2