mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +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
|
@ -5,6 +5,8 @@ if(NOT CMAKE_VERSION MATCHES "ReactOS")
|
||||||
message(WARNING "Building with \"${CMAKE_COMMAND}\", which is not the custom CMake included in RosBE, might cause build issues...")
|
message(WARNING "Building with \"${CMAKE_COMMAND}\", which is not the custom CMake included in RosBE, might cause build issues...")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
include(CMakeDependentOption)
|
||||||
|
|
||||||
project(REACTOS)
|
project(REACTOS)
|
||||||
|
|
||||||
# Versioning
|
# Versioning
|
||||||
|
|
|
@ -44,5 +44,7 @@ set(USERMODE TRUE CACHE BOOL
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(_PREFAST_ FALSE CACHE BOOL
|
set(_PREFAST_ FALSE CACHE BOOL
|
||||||
"Whether to enable PREFAST while compiling.")
|
"Whether to enable PREFAST while compiling.")
|
||||||
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()
|
endif()
|
||||||
|
|
|
@ -45,5 +45,7 @@ set(NEWSPRINTF FALSE CACHE BOOL
|
||||||
"Whether to compile the new sprintf.")
|
"Whether to compile the new sprintf.")
|
||||||
|
|
||||||
if(MSVC)
|
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()
|
endif()
|
||||||
|
|
|
@ -83,8 +83,9 @@ set(_PREFAST_ FALSE CACHE BOOL
|
||||||
"Whether to enable PREFAST while compiling.")
|
"Whether to enable PREFAST while compiling.")
|
||||||
set(_VS_ANALYZE_ FALSE CACHE BOOL
|
set(_VS_ANALYZE_ FALSE CACHE BOOL
|
||||||
"Whether to enable static analysis while compiling.")
|
"Whether to enable static analysis while compiling.")
|
||||||
|
# RTC are incompatible with compiler optimizations.
|
||||||
option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON)
|
cmake_dependent_option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON
|
||||||
|
"CMAKE_BUILD_TYPE STREQUAL \"Debug\"" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(GCC)
|
if(GCC)
|
||||||
|
|
Loading…
Reference in a new issue