summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2026-03-29 18:12:48 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-04-04 18:27:04 +0200
commit9a9c8f7304985eed41f8201eda2dfdc4718d5b21 (patch)
tree0ad7e2522b1f8069e056c013b5a88ffd8367a8c2 /gnu/packages
parente946baf360b30ca8c7b88d76ee97d4a72b27910f (diff)
gnu: louvain-community: Refer to library by path in CMake module.
* gnu/packages/maths.scm (louvain-community) [arguments]<#:phases>: Add 'cmake-lib-full-path phase. Change-Id: I5f957c828f39b24a6fa8da8e3d19f16b5c328303 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/maths.scm15
1 files changed, 14 insertions, 1 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 072bf315c61..51aeb801636 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -10082,7 +10082,20 @@ true in all models.")
(add-after 'unpack 'no-tune-native
(lambda _
(substitute* "CMakeLists.txt"
- (("-mtune=native") "")))))))
+ (("-mtune=native") ""))))
+ ;; Refer to the library in ${LOUVAIN_COMMUNITIES_LIBRARIES} by
+ ;; full path. This ensures that we find references to it in
+ ;; software using this library via CMake.
+ ;;
+ ;; CMake expects module to set this variable to a full path.
+ ;; See <https://cmake.org/cmake/help/v4.3/module/SelectLibraryConfigurations.html#command:select_library_configurations>.
+ (add-after 'unpack 'cmake-lib-full-path
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "louvain_communitiesConfig.cmake.in"
+ (("louvain_communities")
+ (string-append
+ (assoc-ref outputs "out")
+ "/lib/liblouvain_communities.so"))))))))
(native-inputs (list python))
(home-page "https://github.com/meelgroup/louvain-community")
(synopsis "Multi-criteria community detection")