"Fossies" - the Fresh Open Source Software Archive

Member "cmake-3.16.0/Help/policy/CMP0084.rst" (26 Nov 2019, 1145 Bytes) of package /linux/misc/cmake-3.16.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

CMP0084

The FindQt module does not exist for find_package.

The existence of FindQt means that for Qt upstream to provide package config files that can be found by find_package(Qt), the consuming project has to explicitly specify find_package(Qt CONFIG). Removing this module gives Qt a path forward for exporting its own config files which can easily be found by consuming projects.

This policy pretends that CMake's internal FindQt module does not exist for find_package. If a project really wants to use Qt 3 or 4, it can call find_package(Qt[34]), include(FindQt), or add FindQt to their CMAKE_MODULE_PATH.

The OLD behavior of this policy is for FindQt to exist for find_package. The NEW behavior is to pretend that it doesn't exist for find_package.

This policy was introduced in CMake version 3.14. CMake version warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.