1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-05-08 03:40:46 -04:00

math/highs: Add workaround for bug in cmake scripts

... that fix some users.

Reported by:	fallout
This commit is contained in:
Yuri Victorovich 2025-03-23 19:45:23 -07:00
parent fcec46586b
commit b406013dc7

View file

@ -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