addting some testing and squishing and endless stream of bugs

This commit is contained in:
2022-12-15 23:18:17 +01:00
parent e1f6cab55c
commit 3f9116ea22
4 changed files with 222 additions and 38 deletions

View File

@@ -24,7 +24,7 @@ add_subdirectory(./external/json)
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
#link_libraries(-fsanitize=address)
link_libraries(-fsanitize=address,undefined)
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
if (CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")