diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 072bf315c6..51aeb80163 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 . + (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")