Skip to content
Snippets Groups Projects
Commit 19b85578 authored by Tomas Vybiral's avatar Tomas Vybiral
Browse files

edited cmakes

parent cf79a100
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.15)
 
# Set the project name to your project name, my project isn't very descriptive
project(myproject CXX)
project(ni-adp CXX)
include(cmake/StandardProjectSettings.cmake)
include(cmake/PreventInSourceBuilds.cmake)
 
......
function(enable_doxygen)
option(ENABLE_DOXYGEN "Enable doxygen doc builds of source" OFF)
option(ENABLE_DOXYGEN "Enable doxygen doc builds of source" ON)
if(ENABLE_DOXYGEN)
set(DOXYGEN_CALLER_GRAPH YES)
set(DOXYGEN_CALL_GRAPH YES)
......
......@@ -10,17 +10,17 @@ function(enable_sanitizers project_name)
 
set(SANITIZERS "")
 
option(ENABLE_SANITIZER_ADDRESS "Enable address sanitizer" FALSE)
option(ENABLE_SANITIZER_ADDRESS "Enable address sanitizer" TRUE)
if(ENABLE_SANITIZER_ADDRESS)
list(APPEND SANITIZERS "address")
endif()
 
option(ENABLE_SANITIZER_LEAK "Enable leak sanitizer" FALSE)
option(ENABLE_SANITIZER_LEAK "Enable leak sanitizer" TRUE)
if(ENABLE_SANITIZER_LEAK)
list(APPEND SANITIZERS "leak")
endif()
 
option(ENABLE_SANITIZER_UNDEFINED_BEHAVIOR "Enable undefined behavior sanitizer" FALSE)
option(ENABLE_SANITIZER_UNDEFINED_BEHAVIOR "Enable undefined behavior sanitizer" TRUE)
if(ENABLE_SANITIZER_UNDEFINED_BEHAVIOR)
list(APPEND SANITIZERS "undefined")
endif()
......@@ -34,7 +34,7 @@ function(enable_sanitizers project_name)
endif()
endif()
 
option(ENABLE_SANITIZER_MEMORY "Enable memory sanitizer" FALSE)
option(ENABLE_SANITIZER_MEMORY "Enable memory sanitizer" TRUE)
if(ENABLE_SANITIZER_MEMORY AND CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
if("address" IN_LIST SANITIZERS
OR "thread" IN_LIST SANITIZERS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment