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

YCMEPHelper: Fix enabling YCM_EP_DEVEL_MODE_<project> with Ninja and bump version to 0.16.6 #456

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Aug 13, 2024

Fix robotology/robotology-superbuild#83 .

Apparently, YCM was designed with explicit support for printing colored Make output, even for custom YCMEPHelper commands (that were enabled for project only if YCM_EP_DEVEL_MODE_<project> was ON), using the undocumented cmake -E cmake_echo_color functionality.

However, the cmake_echo_color option (and in particular the --switch=$(COLOR) argument) was not working correctly on Ninja. In theory we could investigate how to correctly escape --switch=$(COLOR) to work on Ninja, but in practice ninja historically did not supported colored output by default (see ninja-build/ninja#174), so I think it is just safer to do a normal echo when not using Unix Makefiles generator.

@traversaro traversaro changed the title Fix enabling YCM_EP_DEVEL_MODE_<project> with Ninja YCMEPHelper: Fix enabling YCM_EP_DEVEL_MODE_<project> with Ninja Aug 13, 2024
@traversaro traversaro changed the title YCMEPHelper: Fix enabling YCM_EP_DEVEL_MODE_<project> with Ninja YCMEPHelper: Fix enabling YCM_EP_DEVEL_MODE_<project> with Ninja and bump version to 0.16.6 Aug 13, 2024
@traversaro traversaro merged commit acafece into master Aug 13, 2024
18 checks passed
@traversaro traversaro deleted the fixninjadevelmodel branch August 13, 2024 11:19
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.

Using Ninja generator fails with bad $-escape
1 participant