Closed DeveloperPaul123 closed 6 years ago
Usually, when I run into these issues, I set whatever CMake policy they're asking for (cmake_policy(SET CMP0071 NEW)
in this case).
If that doesn't break anything in your build, it's the simplest solution.
@mkeeter
According to the warning, setting that policy to NEW
means those files will be processed by automoc
and autouic
. We don't want this right since those files are generated by qt5_wrap_qrc
, right?
When configuring on windows 10 using the latest version of CMake (
3.10.2
) a warning is thrown because of the havingCMAKE_AUTOMOC
andCMAKE_AUTOUIC
to on without explicitly setting the CMake policyCMP0071
:We can fix this multiple ways:
CMP0071
CMAKE_AUTOMOC
andCMAKE_AUTOUIC
off and instead useqt5_wrap_cpp
andqt5_wrap_ui
.@mkeeter What are your thoughts?