From b6f6927cac40c78310bee0bc14b71704f7c30617 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Wed, 28 Sep 2016 22:14:01 +0100 Subject: [PATCH] Fix CMake negation and make error fatal Not sure if version-dependant, but with CMake 3.6 "!" doesn't work. Change-Id: I5f91234b27e340142b479b602d4102134ad55ccb Reviewed-on: https://boringssl-review.googlesource.com/11381 Reviewed-by: Adam Langley --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)