Skip to content

Remove REQUIRED from find_dependency.#35

Merged
LTLA merged 2 commits intolibscran:masterfrom
BillyONeal:find-dependency
Apr 22, 2026
Merged

Remove REQUIRED from find_dependency.#35
LTLA merged 2 commits intolibscran:masterfrom
BillyONeal:find-dependency

Conversation

@BillyONeal
Copy link
Copy Markdown
Contributor

The purpose of find_dependency is to propagate REQUIRED-ness from the caller into dependencies, if required.

That is, find_package(libscran_umappp QUIET) should make the inner search for Eigen3 itself QUIET, but putting REQUIRED there breaks this.

Also fixed the order to exactly match the find_package block:

umappp/CMakeLists.txt

Lines 25 to 30 in 8a6efdf

find_package(ltla_aarand 1.1.0 CONFIG REQUIRED)
find_package(ltla_irlba 3.1.0 CONFIG REQUIRED)
find_package(Eigen3 5.0.0 CONFIG REQUIRED)
find_package(ltla_subpar 0.5.0 CONFIG REQUIRED)
find_package(ltla_sanisizer 0.2.0 CONFIG REQUIRED)
find_package(knncolle_knncolle 3.1.0 CONFIG REQUIRED)

The purpose of find_dependency is to propagate REQUIRED-ness from the caller into dependencies, if required.

That is, find_package(libscran_umappp QUIET) should make the inner search for Eigen3 itself QUIET, but putting REQUIRED there breaks this.

Also fixed the order to exactly match the find_package block: https://github.com/BillyONeal/umappp/blob/8a6efdf0b5be73310fc079640127072b99332f75/CMakeLists.txt#L25-L30
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LTLA
Copy link
Copy Markdown
Collaborator

LTLA commented Apr 22, 2026

Makes sense to me, thanks.

@LTLA LTLA merged commit fbbb6db into libscran:master Apr 22, 2026
@BillyONeal BillyONeal deleted the find-dependency branch April 22, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants