Skip to content

Conversation

@zachcran
Copy link
Contributor

@zachcran zachcran commented Dec 1, 2025

Description

This PR utilizes the find_package wrappers added by NWChemEx/NWXCMake#59.

TODOs

  • Verify that it works when built independently
  • Verify that it works when built in Spack

NOTE

Original PR description below, when the wrappers were implemented here.


(Moved to NWChemEx/NWXCMake#59)

Is this pull request associated with an issue(s)?

None that I could find.

Description

This adds wrapper functions to CMake's find_package() that add a wrapper target in CMaize. This allows them to be added properly as dependencies for the main project target and appear properly in the installed <package>Config.cmake and <target>-target.cmake files.

TODOs

  • Potentially rename the added functions to avoid implying that they are in the CMaize package (or migrate them to the CMaize package)
  • License header?
  • Validation of pairwise TARGETS argument to cmaize_find_package
  • Removed leftover commented-out code
  • Add function-level documentation

@zachcran zachcran self-assigned this Dec 1, 2025
@zachcran zachcran added the bug-fix Fixes a bug with a PR label Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Fixes a bug with a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants