CMake, Qt, Ninja build
I have an application that is based on Qt4 . the compilation is handled by ninja and cmake complains about CMP0058 when the command lupdate is run.
CMake Warning (dev):
Policy CMP0058 is not set: Ninja requires custom command byproducts to be
explicit. Run "cmake --help-policy CMP0058" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
This project specifies custom command DEPENDS on files in the build tree
that are not specified as the OUTPUT or BYPRODUCTS of any
add_custom_command or add_custom_target:
App/CMakeFiles/App_de_DE_lupdate.pro
App/CMakeFiles/App_it_IT_lupdate.pro
App/CMakeFiles/App_fr_FR_lupdate.pro
...
In my understanding of CMP0058 I should add a byproduct for getting rid of the warning but the add_custom_command is included inside a cmake module shipped directly with cmake. I checked the master branch of the cmake module Qt4Macros.cmake and there is no byproduct instruction in it. The version installed on my ubuntu system is:
cmake --version
cmake version 3.5.1
I can try to make the changes needed for satisfy the CMP0058 myself, but I lack a bit of understanding about how and where to place this. If you can point me in the right direction I can try to modify the code myself, otherwise I can test it.