[CMAKE] Fix RUNTIME_CHECKS dependent option
authorVictor Perevertkin <victor.perevertkin@reactos.org>
Mon, 14 Dec 2020 18:09:14 +0000 (21:09 +0300)
committerVictor Perevertkin <victor.perevertkin@reactos.org>
Mon, 14 Dec 2020 18:09:14 +0000 (21:09 +0300)
Addendum to 92dfec219d8c53a84c68ca069abbc170fc8bdb49 and a2a6038e562e1936d737bac6cb623cbd74b0f1e2

sdk/cmake/config-amd64.cmake
sdk/cmake/config-arm.cmake
sdk/cmake/config.cmake

index 46a9293..f99fe6a 100644 (file)
@@ -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()
index 3290d76..2fd55a2 100644 (file)
@@ -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()
index 37a6f94..255e650 100644 (file)
@@ -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)