Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include CPM.cmake within SoCMake #57

Open
Risto97 opened this issue Sep 14, 2024 · 0 comments
Open

Include CPM.cmake within SoCMake #57

Risto97 opened this issue Sep 14, 2024 · 0 comments

Comments

@Risto97
Copy link
Contributor

Risto97 commented Sep 14, 2024

It is a bit annoying having to add CPM.cmake file to every IP block repository.
It would be possible to include the CPM.cmake within SoCMake.

This way SoCMake can be fetched with FetchContent, and then from there CPM.cmake would be available for other repositories:

Something like this:

FetchContent_Declare(SoCMake
  GIT_REPOSITORY  https://github.com/HEP-SoC/SoCMake.git
  GIT_TAG develop
  # OPTIONS DOWNLOAD_CPM It would be nice if it can be an option TODO investigate
)
FetchContent_MakeAvailable(SoCMake)

# After this `CPM.cmake` should be available from now on

CPMAddPackage("gh:fmtlib/fmt#7.1.3")
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

No branches or pull requests

1 participant