aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-19 15:06:53 +0100
committerGitHub <noreply@github.com>2023-02-19 15:06:53 +0100
commitbfe6b49447744cea1cd941660b2a3a501a0701cb (patch)
tree371cf186395f24f98f46dba753554e8a420f039c
parent40287319002ff6ced3d280657c276fb7c9ef4df5 (diff)
downloadrneovim-bfe6b49447744cea1cd941660b2a3a501a0701cb.tar.gz
rneovim-bfe6b49447744cea1cd941660b2a3a501a0701cb.tar.bz2
rneovim-bfe6b49447744cea1cd941660b2a3a501a0701cb.zip
build(MSVC): enable assertions on RelWithDebInfo build type (#22326)
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a608e42dab..ce29a65dde 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -151,6 +151,7 @@ endif()
# We _want_ assertions in RelWithDebInfo build-type.
if(CMAKE_C_FLAGS_RELWITHDEBINFO MATCHES DNDEBUG)
string(REPLACE "-DNDEBUG" "" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}")
+ string(REPLACE "/DNDEBUG" "" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}")
endif()
option(LOG_LIST_ACTIONS "Add list actions logging" OFF)