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

Refactor FindTranslationTools.cmake #6667

Conversation

bencsikandrei
Copy link
Contributor

Hello!

I've looked into the translation search file and it was finding a bunch of gettext tools in the same manner.
Used a macro to factor that code out a bit.

How I've tested: inside a docker container and I've activated the ENABLE_POT_UPDATE_TARGET and built like that.
During my testing I've had cmake in very verbose mode to check for the paths and how it set the variables. All LGTM.

All in all seems to work well and the code is shorter and easier to modify if needed.

The CI seems to also do what I've done so fingers crossed!

Please let me know if you'd like me to further test this change.

Thanks!
Andrei

* macro for avoiding code repetition
@github-actions github-actions bot added Building Build-time issues. CMake Issues involving the CMake build system. labels May 1, 2022
@Pentarctagon Pentarctagon merged commit 43c79e3 into wesnoth:master May 2, 2022
@Pentarctagon
Copy link
Member

Looks good, thanks!

@bencsikandrei bencsikandrei deleted the refactor_find_translation_tools_cmake branch May 2, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Building Build-time issues. CMake Issues involving the CMake build system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants