From 6bab72f69aecf2fed8b5e9ca61baf6499eeedb73 Mon Sep 17 00:00:00 2001 From: Victor Perevertkin Date: Mon, 14 Dec 2020 21:09:14 +0300 Subject: [PATCH] [CMAKE] Fix RUNTIME_CHECKS dependent option Addendum to 92dfec219d8c53a84c68ca069abbc170fc8bdb49 and a2a6038e562e1936d737bac6cb623cbd74b0f1e2 --- sdk/cmake/config-amd64.cmake | 2 +- sdk/cmake/config-arm.cmake | 2 +- sdk/cmake/config.cmake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/cmake/config-amd64.cmake b/sdk/cmake/config-amd64.cmake index 46a9293d2eb..f99fe6a925f 100644 --- a/sdk/cmake/config-amd64.cmake +++ b/sdk/cmake/config-amd64.cmake @@ -46,5 +46,5 @@ set(_PREFAST_ FALSE CACHE BOOL "Whether to enable PREFAST while compiling.") # 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) + "CMAKE_BUILD_TYPE STREQUAL Debug" OFF) endif() diff --git a/sdk/cmake/config-arm.cmake b/sdk/cmake/config-arm.cmake index 3290d76a166..2fd55a21453 100644 --- a/sdk/cmake/config-arm.cmake +++ b/sdk/cmake/config-arm.cmake @@ -47,5 +47,5 @@ set(NEWSPRINTF FALSE CACHE BOOL if(MSVC) # 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) + "CMAKE_BUILD_TYPE STREQUAL Debug" OFF) endif() diff --git a/sdk/cmake/config.cmake b/sdk/cmake/config.cmake index 37a6f949901..255e6502fe1 100644 --- a/sdk/cmake/config.cmake +++ b/sdk/cmake/config.cmake @@ -90,7 +90,7 @@ set(_VS_ANALYZE_ FALSE CACHE BOOL "Whether to enable static analysis while compiling.") # 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) + "CMAKE_BUILD_TYPE STREQUAL Debug" OFF) endif() if(GCC)