summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-30 13:47:41 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-30 13:47:41 (GMT)
commitb1883bc8b7bd4211037bcc181edffdcce646f43a (patch)
treefc1a74cfdab6953ad268517dbfe32040e5d04896 /Source/cmPolicies.h
parent2bef3774276e0b27718107edccd5e107fd72b292 (diff)
parentd582c23a47ceef09e80435d6b986e3938f7f1521 (diff)
downloadCMake-b1883bc8b7bd4211037bcc181edffdcce646f43a.zip
CMake-b1883bc8b7bd4211037bcc181edffdcce646f43a.tar.gz
CMake-b1883bc8b7bd4211037bcc181edffdcce646f43a.tar.bz2
Merge topic 'try_compile-config-flags'
d582c23a try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG>
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index ff49e31..0c8ff60 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -203,7 +203,10 @@ class cmPolicy;
SELECT(POLICY, CMP0065, \
"Do not add flags to export symbols from executables without " \
"the ENABLE_EXPORTS target property.", \
- 3, 4, 0, cmPolicies::WARN)
+ 3, 4, 0, cmPolicies::WARN) \
+ SELECT(POLICY, CMP0066, \
+ "Honor per-config flags in try_compile() source-file signature.", 3, \
+ 7, 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \