diff options
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 53c1a7a5..982166f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1370,6 +1370,9 @@ if("${ENABLE_SANITIZERS}") message(STATUS "${sanitizer} isn't a supported sanitizer") endif() endforeach() + if("${SANITIZER_FLAGS}" STREQUAL "") + message(FATAL_ERROR "No supported sanitizers found") + endif() else() # # This appears to indicate that ENABLE_SANITIZERS was either: |