diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-10-31 17:26:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-14 20:05:06 (GMT) |
commit | 0f5c1b404b0f9cbe652cf306e9dca0c25c70876f (patch) | |
tree | 3040a94e2f7f8f9e0de4a8bd13debbe665ea997a /Source/cmPolicies.h | |
parent | ddb967cca1a37501dcf3fbd6f64c2d3be1c0c82b (diff) | |
download | CMake-0f5c1b404b0f9cbe652cf306e9dca0c25c70876f.zip CMake-0f5c1b404b0f9cbe652cf306e9dca0c25c70876f.tar.gz CMake-0f5c1b404b0f9cbe652cf306e9dca0c25c70876f.tar.bz2 |
find_package(): Add policy to remove the FindQt module
Removing FindQt.cmake gives Qt upstream a path forward to export its
own QtConfig.cmake files which can be found by find_package()
without having to explicitly specify CONFIG. Projects that still
want to use Qt3/4 can call find_package(Qt[34]), include(FindQt),
or add FindQt.cmake to their CMAKE_MODULE_PATH.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index 52ef470..6b1314f 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -246,7 +246,10 @@ class cmMakefile; "in caller.", \ 3, 14, 0, cmPolicies::WARN) \ SELECT(POLICY, CMP0083, "Add PIE options when linking executable.", 3, 14, \ - 0, cmPolicies::WARN) + 0, cmPolicies::WARN) \ + SELECT(POLICY, CMP0084, \ + "The FindQt module does not exist for find_package().", 3, 14, 0, \ + cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) #define CM_FOR_EACH_POLICY_ID(POLICY) \ |