Skip to content

CMake: Also set SKIP_AUTOUIC on generated files

Kevin Funk requested to merge cmake-skip-autouic into master

Otherwise we get a CMake warning, just as:

CMake Warning (dev) in resources/sugarcrm/CMakeLists.txt:
  Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  Run "cmake --help-policy CMP0071" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  For compatibility, CMake is excluding the GENERATED source file(s):

    "/home/kfunk/devel/build/kdab/FatCRM/resources/sugarcrm/settings.cpp"
    "/home/kfunk/devel/build/kdab/FatCRM/resources/sugarcrm/settings.h"

  from processing by AUTOMOC and AUTOUIC.
(...)

Also merge calls to set_source_files_properties() as it can handle multiple files at once.

Merge request reports

Loading