LMMS / LMMS/lmms

Running Cmake warns you about Policy CMP0072 not being set

Open
#4,499 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
7

Description

When you run Cmake version 3.11.2 you get this error:

```
CMake Warning (dev) in src/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/pj/Desktop/lmms/build/src/embedded_resources.h"

from processing by AUTOMOC. If any of the files should be processed, set
CMP0071 to NEW. If any of the files should not be processed, explicitly
exclude them by setting the source file property SKIP_AUTOMOC:

set_property(SOURCE file.h PROPERTY SKIP_AUTOMOC ON)
```

[This](https://cmake.org/cmake/help/latest/policy/CMP0071.html) is the policy that isn't being set, and is similar to #3985. I can make a pull request to fix this.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/CMakeLists.txt and read CMake policy CMP0071, using the reported warning and generated src/embedded_resources.h as context. Run CMake 3.11.2 to reproduce the warning, then verify the completed change no longer emits this policy warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.