Modernize Enzyme dependency in cmake
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 27
- Forks
- 11
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 23
Description
Summary
Treat Enzyme like a true cmake dependency
Rationale
CMake code for linking with Enzyme is complicated (thus error-prone) and duplicated across all dependent libraries. It would be better to define the build requirements in one place and let dependent libraries just use the target.
Description
- Update
FindEnzyme.cmaketo be a true "find module" - Update link code for library targets to use enzyme target instead of itemizing build requirements
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading FindEnzyme.cmake and locating the duplicated Enzyme linking code for the library targets. Compare the current build requirements with the desired Enzyme target usage. The work is done when FindEnzyme.cmake provides a reusable dependency target and dependent libraries link through that target without repeating the requirements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100