Skip to content

Commit

Permalink
replace unsupported message with disabled message when unsupported fe…
Browse files Browse the repository at this point in the history
…atures are disabled
  • Loading branch information
jason committed Aug 9, 2024
1 parent 9033758 commit 531fabc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lcm-java/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ error_messages = ['Java is not currently supported! Try at your own risk.']

if get_option('lcm_enable_java').disabled()
proceed_build = disabler()
error_messages += ['Meson configured with -Dlcm_enable_java=disabled']
error_messages = ['Meson configured with -Dlcm_enable_java=disabled']
elif not add_languages('java', required : get_option('lcm_enable_java').enabled())
proceed_build = disabler()
error_messages += ['Missing dependency java']
Expand Down
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ summary_reference = {}
foreach option, state: enabled_options
if option == 'Build unit tests'
summary_reference += {option: false}
summary_reference += {'- Build unit tests errors(s)': 'Unit tests are currently unsupported!'}
if not get_option('lcm_enable_tests').disabled()
summary_reference += {'- Build unit tests errors(s)': 'Unit tests are currently unsupported!'}
endif
summary_reference += {'- Build unit tests errors(s)': 'Meson configured with -Dlcm_enable_tests=disabled'}
else
summary_reference += {option: not state.disabled()}
endif
Expand Down

0 comments on commit 531fabc

Please sign in to comment.