chore: add option to use sanitizers

This commit is contained in:
ToruNiina
2020-01-08 23:07:05 +09:00
parent b1827e6fca
commit a0c5192b74
2 changed files with 15 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ set(toml11_VERSION
)
option(toml11_BUILD_TEST "Build toml tests" ON)
option(toml11_TEST_WITH_ASAN "use LLVM address sanitizer" OFF)
option(toml11_TEST_WITH_UBSAN "use LLVM undefined behavior sanitizer" OFF)
include(CheckCXXCompilerFlag)
if("${CMAKE_VERSION}" VERSION_GREATER 3.1)