1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

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>
This commit is contained in:
Sören Tempel
2026-03-29 18:12:48 +02:00
committed by Liliana Marie Prikler
parent e946baf360
commit 9a9c8f7304

View File

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