@@ -57,12 +57,12 @@ option(UMF_FORMAT_CODE_STYLE
57
57
OFF )
58
58
# Only a part of skips is treated as a failure now. TODO: extend to all tests
59
59
option (UMF_TESTS_FAIL_ON_SKIP "Treat skips in tests as fail" OFF )
60
- option (USE_ASAN "Enable AddressSanitizer checks" OFF )
61
- option (USE_UBSAN "Enable UndefinedBehaviorSanitizer checks" OFF )
62
- option (USE_TSAN "Enable ThreadSanitizer checks" OFF )
63
- option (USE_MSAN "Enable MemorySanitizer checks" OFF )
64
- option (USE_VALGRIND "Enable Valgrind instrumentation" OFF )
65
- option (USE_GCOV "Enable gcov support" OFF )
60
+ option (UMF_USE_ASAN "Enable AddressSanitizer checks" OFF )
61
+ option (UMF_USE_UBSAN "Enable UndefinedBehaviorSanitizer checks" OFF )
62
+ option (UMF_USE_TSAN "Enable ThreadSanitizer checks" OFF )
63
+ option (UMF_USE_MSAN "Enable MemorySanitizer checks" OFF )
64
+ option (UMF_USE_VALGRIND "Enable Valgrind instrumentation" OFF )
65
+ option (UMF_USE_GCOV "Enable gcov support" OFF )
66
66
option (
67
67
UMF_DISABLE_HWLOC
68
68
"Disable features that requires hwloc (OS provider, memory targets, topology discovery)"
@@ -266,16 +266,16 @@ if(MSVC)
266
266
endif ()
267
267
268
268
# Sanitizer flags
269
- if (USE_ASAN )
269
+ if (UMF_USE_ASAN )
270
270
add_sanitizer_flag(address)
271
271
endif ()
272
- if (USE_UBSAN )
272
+ if (UMF_USE_UBSAN )
273
273
add_sanitizer_flag(undefined)
274
274
endif ()
275
- if (USE_TSAN )
275
+ if (UMF_USE_TSAN )
276
276
add_sanitizer_flag(thread)
277
277
endif ()
278
- if (USE_MSAN )
278
+ if (UMF_USE_MSAN )
279
279
message (WARNING "MemorySanitizer requires instrumented libraries to "
280
280
"prevent reporting false-positives" )
281
281
add_sanitizer_flag(memory)
0 commit comments