summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-15 19:18:03 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-17 12:17:28 (GMT)
commit2ea17412a9a40bd66342a1761ac8f067f5d2ab09 (patch)
treef5f8bb250ff5c251761dae6922f9725f316b68ea /Source
parent2392f6ea3e3fc4d541594ea7e86be2bb607ba876 (diff)
downloadCMake-2ea17412a9a40bd66342a1761ac8f067f5d2ab09.zip
CMake-2ea17412a9a40bd66342a1761ac8f067f5d2ab09.tar.gz
CMake-2ea17412a9a40bd66342a1761ac8f067f5d2ab09.tar.bz2
FindOpenGL: Add policy CMP0072 to prefer GLVND for legacy GL
Fixes: #17449
Diffstat (limited to 'Source')
-rw-r--r--Source/cmPolicies.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index f614dca..c39f927 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -211,7 +211,10 @@ class cmMakefile;
"Define file(GENERATE) behavior for relative paths.", 3, 10, 0, \
cmPolicies::WARN) \
SELECT(POLICY, CMP0071, "Let AUTOMOC and AUTOUIC process GENERATED files.", \
- 3, 10, 0, cmPolicies::WARN)
+ 3, 10, 0, cmPolicies::WARN) \
+ SELECT(POLICY, CMP0072, \
+ "FindOpenGL prefers GLVND by default when available.", 3, 11, 0, \
+ cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \