1

Topic: Devil's politicians CMake

I sit, I swear. There is a project with usage CMake. One of  uses QT. There is a code: CMAKE_POLICY (SET CMP0020 OLD) but I have a heap of warnings that ostensibly policy CMP0020 is not installed, and its this policy is necessary for installing explicitly: CMake Warning (dev) in CMakeLists.txt: Policy CMP0020 is not set: Automatically link Qt executables to qtmain target on Windows. Run "cmake - help-policy CMP0020" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Well so, CMAKE_POLICY at me also sets it explicitly. https://cmake.org/cmake/help/v3.0/policy/CMP0020.html Use the cmake_policy command to set it to OLD or NEW explicitly. CMake versions 3.8.0. A system bug?

2

Re: Devil's politicians CMake

Hello, GhostCoders, you wrote: GC> There is a code: GC> GC> CMAKE_POLICY (SET CMP0020 OLD) GC> GC> but I have a heap of warnings that ostensibly policy CMP0020 is not installed, and its this policy is necessary for installing explicitly: GC> GC> CMake Warning (dev) in CMakeLists.txt: GC> Policy CMP0020 is not set: Automatically link Qt executables to qtmain GC> target on Windows. Run "cmake - help-policy CMP0020" for policy details. GC> Use the cmake_policy command to set the policy and suppress this warning. GC> add in start CMake  ` - trace-expand ` for example, receive trace the scripts and convince that ` cmake_policy ` in you it is caused earlier than something causing specified . GC> CMake versions 3.8.0. A system bug? Check up on other versions 3.9 or 3.10 for example...