mirror of
https://github.com/QuasarApp/zip.git
synced 2025-04-27 12:54:32 +00:00
Add sanitizers for zip (#213)
This commit is contained in:
parent
cf4022802e
commit
594dbd5cc4
@ -7,6 +7,7 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
||||
set(CMAKE_VERBOSE_MAKEFILE ON)
|
||||
|
||||
option(CMAKE_DISABLE_TESTING "Disable test creation" OFF)
|
||||
option(CMAKE_ENABLE_SANITIZERS "Enable zip sanitizers" OFF)
|
||||
option(ZIP_STATIC_PIC "Build static zip with PIC" ON)
|
||||
option(ZIP_BUILD_DOCS "Generate API documentation with Doxygen" OFF)
|
||||
|
||||
@ -38,6 +39,10 @@ if (NOT CMAKE_DISABLE_TESTING)
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
if (CMAKE_ENABLE_SANITIZERS)
|
||||
find_package(Sanitizers)
|
||||
add_sanitizers(${PROJECT_NAME})
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_STANDARD 90)
|
||||
if (MSVC)
|
||||
|
Loading…
x
Reference in New Issue
Block a user