diff options
author | Guy Harris <gharris@sonic.net> | 2023-04-09 18:24:37 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2023-04-09 18:24:37 -0700 |
commit | 92a9025ce167d1d3e09d16c4af436d163a1f4e6b (patch) | |
tree | ecd5f07040c4524ccec05cb1e69f2957fda5f8d6 | |
parent | 5098f5d4bc11941ec91f517084f2be54d76db7cb (diff) | |
download | libpcap-92a9025ce167d1d3e09d16c4af436d163a1f4e6b.tar.gz |
cmake: fail if -DENABLE_SANITIZERS=ON and no sanitizers were found.
-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: |