[CMAKE][CONFIGURE] Enable runtime checks on MSVC by default.

Remove RTC switch from configure.cmd, now MSVC runtime checks are
supposed to be enabled/disabled via CMake define (-DRUNTIME_CHECKS=1)
Prepare for adding more dynamic analysis options
This commit is contained in:
Victor Perevertkin 2020-04-09 04:40:17 +03:00
parent 2a6bccb4ce
commit 92dfec219d
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
9 changed files with 32 additions and 21 deletions

View file

@ -83,9 +83,12 @@ set(_PREFAST_ FALSE CACHE BOOL
"Whether to enable PREFAST while compiling.")
set(_VS_ANALYZE_ FALSE CACHE BOOL
"Whether to enable static analysis while compiling.")
else()
set(STACK_PROTECTOR FALSE CACHE BOOL
"Whether to enbable the GCC stack checker while compiling")
option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON)
endif()
if(GCC)
option(STACK_PROTECTOR "Whether to enable the GCC stack checker while compiling" OFF)
endif()
set(USE_DUMMY_PSEH FALSE CACHE BOOL