Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use both TARGET and DEPENDS in ADD_CUSTOM_COMMAND.
Modern cmake warns like this: CMake Warning (dev) at po/CMakeLists.txt:20 (ADD_CUSTOM_COMMAND): The following keywords are not supported when using add_custom_command(TARGET): DEPENDS. Rewrite the build instructions to have an additional level of dependencies. Before, we have one build target, the compiles all *.po files. Now we let the main target ("translations") depend on the output files (*.gmo), which themselves depend on their respective *.po file via ADD_CUSTOM_COMMAND. I took the example CMakeLists.txt at Techbase[1] as inspiration how to rewrite the target chain. [1] https://techbase.kde.org/Development/Tutorials/Localization/i18n_Build_Systems/Outside_KDE_repositories
- Loading branch information