mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:31:44 +00:00
[CMAKE] MSVC RUNTIME_CHECKS is a 'Debug'-only feature
"cl : Command line error D8016 : '/Ox' and '/RTC1' command-line options are incompatible"
Addendum to 92dfec219d
.
This commit is contained in:
parent
de40118362
commit
a2a6038e56
4 changed files with 11 additions and 4 deletions
|
@ -45,5 +45,7 @@ set(NEWSPRINTF FALSE CACHE BOOL
|
|||
"Whether to compile the new sprintf.")
|
||||
|
||||
if(MSVC)
|
||||
option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON)
|
||||
# RTC are incompatible with compiler optimizations.
|
||||
cmake_dependent_option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON
|
||||
"CMAKE_BUILD_TYPE STREQUAL \"Debug\"" OFF)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue