PKGBUILDs/extra/suitesparse/libatomic.patch

26 lines
1.1 KiB
Diff
Raw Normal View History

2020-04-26 20:00:27 +00:00
Description: Add missing link of GraphBLAS to libatomic
Needed for at least armel, mipsel, m68k and powerpc.
Author: Sébastien Villemot <sebastien@debian.org>
Bug: https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/21
Last-Update: 2020-02-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/GraphBLAS/CMakeLists.txt
+++ b/GraphBLAS/CMakeLists.txt
2021-10-16 23:19:38 +00:00
@@ -270,6 +270,7 @@ SET_TARGET_PROPERTIES ( graphblas PROPER
2020-04-26 20:00:27 +00:00
C_STANDARD_REQUIRED 11
PUBLIC_HEADER "Include/GraphBLAS.h" )
set_property ( TARGET graphblas PROPERTY C_STANDARD 11 )
2021-10-16 23:19:38 +00:00
+target_link_libraries(graphblas PUBLIC atomic)
2020-04-26 20:00:27 +00:00
#-------------------------------------------------------------------------------
# static graphblas library properties
2021-10-16 23:19:38 +00:00
@@ -284,6 +285,7 @@ if ( BUILD_GRB_STATIC_LIBRARY )
2020-04-26 20:00:27 +00:00
C_STANDARD_REQUIRED 11
PUBLIC_HEADER "Include/GraphBLAS.h" )
set_property ( TARGET graphblas_static PROPERTY C_STANDARD 11 )
2021-10-16 23:19:38 +00:00
+ target_link_libraries(graphblas_static PUBLIC atomic)
2020-04-26 20:00:27 +00:00
endif ( )
#-------------------------------------------------------------------------------