Skip to content

Tweaks to integrate salib as a library via cmake #505

@blinard-BIOINFO

Description

@blinard-BIOINFO

libisal

  • despite having installed libisal-dev and libisal2 debain package in defaulty debian (ubuntu) library directories, the library cannot be found by the current cmake recipe of strobealign.
  • this is strange, as calling for this library in another dummy recipes works (default search path modified in strobealign cmakelist?)
  • the README mention I-SAL, but not explicitly as a dependency
  • I resolved this by setting download option in my top cmakelist :
# strobealign source code access
set(ISAL "download")
FetchContent_Declare(
        strobealign
        GIT_REPOSITORY https://github.com/ksahlin/strobealign.git
        GIT_TAG        v0.16.1
)

zstr, statically loaded twice with different version

  • zstr is statically copied into one of strobealign's sub-directories and loaded statically.
  • This conflicts with my other cmakelists (including mine and those of graphaligner where it is also a dependency, but different versions)
  • Temporary fix is to use OVERRIDE_FIND_PACKAGE in fetch_content(). It will give priority to zstr search via strobalign recipe, and pass it to upper level recipes.
    This constrains to rely on strobealign fixed version (not a big issue so far).
# fix for zstr, in my particular setup
set(ISAL "download")
FetchContent_Declare(
        strobealign
        GIT_REPOSITORY https://github.com/ksahlin/strobealign.git
        GIT_TAG        v0.16.1
        OVERRIDE_FIND_PACKAGE   #ignore further zstr loads from GraphAligner
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions