diff --git a/CMakeLists.txt b/CMakeLists.txt index a0c6998a..3d1ea78d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,8 +121,8 @@ if(NOT WIN32) endif() if(FUZZ) - if(!CMAKE_CXX_COMPILER_ID MATCHES "Clang") - message("You need to build with Clang for fuzzing to work") + if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") + message(FATAL_ERROR "You need to build with Clang for fuzzing to work") endif() add_definitions(-DBORINGSSL_UNSAFE_FUZZER_MODE)