diff options
author | Brad King <brad.king@kitware.com> | 2019-07-18 18:20:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-19 15:17:32 (GMT) |
commit | 282d9f31685906cd45b27961ea013edab8bacd6b (patch) | |
tree | bf915418699585df323d39b2ca519c003814486a /Help/policy | |
parent | 79bcf4e1655ffa38e8f4740b19ec3a14ac567eec (diff) | |
download | CMake-282d9f31685906cd45b27961ea013edab8bacd6b.zip CMake-282d9f31685906cd45b27961ea013edab8bacd6b.tar.gz CMake-282d9f31685906cd45b27961ea013edab8bacd6b.tar.bz2 |
MSVC: Document behavior when MSVC_RUNTIME_LIBRARY is not set
By default `CMAKE_MSVC_RUNTIME_LIBRARY` is not set. Document the
default runtime library selection in that case. We already test it.
Diffstat (limited to 'Help/policy')
-rw-r--r-- | Help/policy/CMP0091.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/policy/CMP0091.rst b/Help/policy/CMP0091.rst index 5b7c4e3..1a5878a 100644 --- a/Help/policy/CMP0091.rst +++ b/Help/policy/CMP0091.rst @@ -20,7 +20,9 @@ CMake 3.15 and above prefer to leave the MSVC runtime library selection flags out of the default :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>` values and instead offer a first-class abstraction. The :variable:`CMAKE_MSVC_RUNTIME_LIBRARY` variable and :prop_tgt:`MSVC_RUNTIME_LIBRARY` target property may be set to -select the MSVC runtime library. +select the MSVC runtime library. If they are not set then CMake uses the +default value ``MultiThreaded$<$<CONFIG:Debug>:Debug>DLL`` which is +equivalent to the original flags. This policy provides compatibility with projects that have not been updated to be aware of the abstraction. The policy setting takes effect as of the |