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: Install bash-completion and add man and doxygen status message #2398

Merged
merged 2 commits into from
Oct 25, 2020

Conversation

Ghabry
Copy link
Member

@Ghabry Ghabry commented Oct 12, 2020

Hardcoded the completion dir to "${CMAKE_INSTALL_DATADIR}/bash-completion/completions" as suggested in #2396 otherwise this is a mess because the one returned by bash is an absolute directory which makes "install" fail without sudo...

For Unix I always install it, for all other platforms I depend on bash-completion being installed. This way one can also get the completion on Msys2 or macOS if this makes any sense ^^

Unconditionally on Unix as bash is usually available there. On other platforms depend on bash-completion package as a hint.

Fix EasyRPG#2396
@Ghabry Ghabry force-pushed the cmake-install-bashcomp branch from 7be5abf to 41c6783 Compare October 12, 2020 16:00
@Ghabry
Copy link
Member Author

Ghabry commented Oct 12, 2020

For Windows and macOS I get:

-- Manual page: Unavailable
-- Bash completion: Unavailable
-- Doxygen: Unavailable

Which is good.

Local I get

-- Manual page: Generated
-- Bash completion: Available
-- Doxygen: Available (target "doc")

Emscripten gives (emscripten is always special because it is not considered crosscompiling)

-- Manual page: Generated
-- Bash completion: Available
-- Doxygen: Available (target "doc")

@akien-mga
Can you check if this patch works for you? Thanks.

@Ghabry Ghabry added this to the 0.6.3 milestone Oct 12, 2020
@akien-mga
Copy link

The patch works well for me (applied on top of 0.6.2.3) 👍

@Ghabry Ghabry requested a review from fmatthew5876 October 25, 2020 19:08
@fmatthew5876 fmatthew5876 merged commit 0315b1e into EasyRPG:master Oct 25, 2020
@Ghabry Ghabry deleted the cmake-install-bashcomp branch May 27, 2021 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants