mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
math/suitesparse-lagraph: fix build on armv7
liblagraphx requires libm on this platform. Approved by: portmgr (build fix blanket) MFH: 2025Q1 PR: 283587
This commit is contained in:
parent
49184418ed
commit
337d71346c
2 changed files with 24 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
PORTNAME= ${MPORTNAME:tl}
|
PORTNAME= ${MPORTNAME:tl}
|
||||||
PORTVERSION= 1.1.4
|
PORTVERSION= 1.1.4
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
|
|
||||||
COMMENT= Graph algorithms based on GraphBLAS
|
COMMENT= Graph algorithms based on GraphBLAS
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
--- LAGraph/experimental/CMakeLists.txt.orig 2025-01-20 03:05:28 UTC
|
||||||
|
+++ LAGraph/experimental/CMakeLists.txt
|
||||||
|
@@ -38,7 +38,7 @@ if ( BUILD_SHARED_LIBS )
|
||||||
|
set_target_properties ( LAGraphX PROPERTIES EXPORT_NO_SYSTEM ON )
|
||||||
|
endif ( )
|
||||||
|
|
||||||
|
- target_link_libraries ( LAGraphX PRIVATE LAGraph GraphBLAS::GraphBLAS )
|
||||||
|
+ target_link_libraries ( LAGraphX PRIVATE LAGraph GraphBLAS::GraphBLAS -lm )
|
||||||
|
|
||||||
|
target_include_directories ( LAGraphX PUBLIC
|
||||||
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||||
|
@@ -71,9 +71,9 @@ if ( BUILD_STATIC_LIBS )
|
||||||
|
endif ( )
|
||||||
|
|
||||||
|
if ( TARGET GraphBLAS::GraphBLAS_static )
|
||||||
|
- target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS_static )
|
||||||
|
+ target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS_static -lm )
|
||||||
|
else ( )
|
||||||
|
- target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS )
|
||||||
|
+ target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS -lm )
|
||||||
|
endif ( )
|
||||||
|
|
||||||
|
target_include_directories ( LAGraphX_static PUBLIC
|
Loading…
Add table
Reference in a new issue