ORNL / ORNL/GridKit

Use `CMAKE_PREFIX_PATH` in addition to individual `<dep>_DIR`

Open
#251 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

cmake enhancement
Dominant language
C++
Stars
27
Forks
11
Avg merge
3d 8h
Merged PRs (30d)
23

Description

Summary

Make use of CMAKE_PREFIX_PATH for all dependency paths.

Rationale

CMAKE_PREFIX_PATH provides a standardized centralized list of dependency paths for CMake's built-in find_* tools. It's also nice for users who are used to the convention to use this variable instead of worrying about which other variables to specify.

Description

Any path variables used for dependency finding should be appended to this list and this should be the default used for "finding".

Additional information

See https://cmake.org/cmake/help/v3.22/variable/CMAKE_PREFIX_PATH.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the CMake dependency-finding logic and the individual _DIR path variables. Read the CMAKE_PREFIX_PATH documentation linked in the issue, then trace each dependency lookup to determine where paths are assembled. Done means all dependency paths participate in CMAKE_PREFIX_PATH while the existing individual variables remain supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.