diff options
author | Brad King <brad.king@kitware.com> | 2022-05-27 13:10:35 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-27 13:10:43 (GMT) |
commit | 49e31d9c5562c1c0eea3e280b560b49a8711dc68 (patch) | |
tree | 64b47d8e5c71ed0d72b5c3ae0acd026e9b1c5801 /Source | |
parent | 6a2ee6f97795c5ae11b1b5dca9b8a0d8f5f4f8d7 (diff) | |
parent | 5fcadc481e4b60e5dbbacb026b73631b69ca3746 (diff) | |
download | CMake-49e31d9c5562c1c0eea3e280b560b49a8711dc68.zip CMake-49e31d9c5562c1c0eea3e280b560b49a8711dc68.tar.gz CMake-49e31d9c5562c1c0eea3e280b560b49a8711dc68.tar.bz2 |
Merge topic 'msvc-compilers-default-to-ZI'
5fcadc481e MSVC: Default to -ZI instead of /Zi for x86 and x64
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7295
Diffstat (limited to 'Source')
-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 c8b037e..f13432b 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -414,7 +414,10 @@ class cmMakefile; 24, 0, cmPolicies::WARN) \ SELECT(POLICY, CMP0137, \ "try_compile() passes platform variables in project mode", 3, 24, 0, \ - cmPolicies::WARN) + cmPolicies::WARN) \ + SELECT(POLICY, CMP0138, \ + "MSVC compilers use -ZI instead of /Zi for x86 and x64 by default.", \ + 3, 24, 0, cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) #define CM_FOR_EACH_POLICY_ID(POLICY) \ |