Skip to content

Temporary solution for #83 to allow for use of config.h with cmake#84

Merged
abishekvashok merged 1 commit into
abishekvashok:masterfrom
incomingstick:master
Jun 15, 2019
Merged

Temporary solution for #83 to allow for use of config.h with cmake#84
abishekvashok merged 1 commit into
abishekvashok:masterfrom
incomingstick:master

Conversation

@incomingstick
Copy link
Copy Markdown
Contributor

This commit provides a temporary fix for #83 that caused cmatrix to add a background color, instead of using the default terminal background. This issue is only present in cmake builds.

CMakeLists.txt now checks to see if a config.h is present. If a config.h is not available, it will add the preprocessor definition EXCLUDE_CONFIG_H as it has prior. However, if a config.h is present, we will use that instead. This allows a user to run autoreconf -i && ./configure before running cmake and finally, make.

If this fix is accepted, I would recommend adding those to the build instructions in the README. Ideally, CMake should be able to make the config.h for us, but some work will need to be done to ensure it matches what autotools would output.

On a slightly personal note, this will also require an update to the PKGBUILD (AUR) neither of which appear to be a separate branch available for editing. :)

Let me know what more I can do to help!

…with cmake

This commit provides a temporary fix for abishekvashok#83 that caused cmatrix to
add a background color, instead of using the default terminal
background. This issue is only present in cmake builds.

CMakeLists.txt now checks to see if a `config.h` is present. If a
`config.h` is not available, it will add the preprocessor definition
EXCLUDE_CONFIG_H as it has prior. However, if a config.h is present,
we will use that instead. This allows a user to run `autoreconf -i &&
./configure` before running `cmake` and finally, `make`.
Copy link
Copy Markdown
Owner

@abishekvashok abishekvashok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTG

@abishekvashok abishekvashok merged commit cdd3729 into abishekvashok:master Jun 15, 2019
@abishekvashok
Copy link
Copy Markdown
Owner

Thanks for working on it :)

@incomingstick
Copy link
Copy Markdown
Contributor Author

yeah no problem! If I find time I may look into it improving it further 👍

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.

2 participants