Browse Source

* Added sanitizers to the project

master
bergmann 4 years ago
parent
commit
28645bce9c
3 changed files with 9 additions and 2 deletions
  1. +1
    -1
      .gitmodules
  2. +1
    -1
      cmake/modules
  3. +7
    -0
      test/CMakeLists.txt

+ 1
- 1
.gitmodules View File

@@ -1,3 +1,3 @@
[submodule "cmake/modules"]
path = cmake/modules
url = b3rgmann@git.bergmann89.de:cpp/CMakeModules.git
url = https://git.bergmann89.de/cpp/CMakeModules.git

+ 1
- 1
cmake/modules

@@ -1 +1 @@
Subproject commit 94b9877d65e46c9d8169ebc46f163d02e4d9dcf3
Subproject commit 165bf7c7702ec184b46b046889b62ef4a63afccf

+ 7
- 0
test/CMakeLists.txt View File

@@ -6,6 +6,8 @@ Include ( cmake_tests OPTIONAL RESULT_VARIABLE HAS_C

Find_Package ( Sanitizers QUIET )

Find_Package ( Sanitizers QUIET )

# Test ############################################################################################

Find_Package ( GTest )
@@ -45,6 +47,11 @@ ForEach ( FILE IN LISTS CPPMP_TEST_SOURCE_FILES )
Add_Sanitizers ( ${TEST_NAME} )
EndIf ( )

# Sanitizers
If ( Sanitizers_FOUND )
Add_Sanitizers ( ${TEST_NAME} )
EndIf ( )

# pedantic
If ( HAS_PEDANTIC )
Pedantic_Apply_Flags_Target ( ${TEST_NAME} ALL )


Loading…
Cancel
Save