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

cmake: Support cmake command replacement on #initialize #107

Conversation

cosmo0920
Copy link
Contributor

@cosmo0920 cosmo0920 commented Aug 31, 2021

For CentOS, RHEL, and Amazon Linux 2 use case, we sometimes need to use cmake3 command instead of cmake command.
Could you provide how to specify arbitrary cmake command at #initialize on MiniPortileCMake class?

Signed-off-by: Hiroshi Hatake hatake@calyptia.com

@flavorjones
Copy link
Owner

@cosmo0920 Thank you for this contribution! I've added some commits to this PR to make the make and gcc commands configurable, and updated your commit to have cmake follow that same convention.

If this goes green in CI then I'll merge and cut a release.

@flavorjones flavorjones force-pushed the support-replace-cmake-command-via-initialize branch 3 times, most recently from baadd84 to fa0c687 Compare August 31, 2021 13:57
flavorjones and others added 2 commits August 31, 2021 09:58
- MiniPortile initializer takes optional keyword arguments
- the methods gcc_cmd and make_cmd are now public
- allow configuration of gcc and make commands
- new public method cmake_cmd, and configurable cmake command
- update README with configuration instructions

Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Co-authored-by: Hiroshi Hatake <hatake@calyptia.com>
@flavorjones flavorjones force-pushed the support-replace-cmake-command-via-initialize branch from fa0c687 to 8d9401e Compare August 31, 2021 13:58
@flavorjones flavorjones merged commit bf1f0c4 into flavorjones:main Aug 31, 2021
@flavorjones
Copy link
Owner

Released in v2.7.0

@cosmo0920
Copy link
Contributor Author

Wow, thanks for the quick releasing!

@cosmo0920 cosmo0920 deleted the support-replace-cmake-command-via-initialize branch September 1, 2021 01:22
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.

None yet

2 participants