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 <agl@google.com>
This commit is contained in:
parent
0d81373f91
commit
b6f6927cac
@ -121,8 +121,8 @@ if(NOT WIN32)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(FUZZ)
|
if(FUZZ)
|
||||||
if(!CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
message("You need to build with Clang for fuzzing to work")
|
message(FATAL_ERROR "You need to build with Clang for fuzzing to work")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_definitions(-DBORINGSSL_UNSAFE_FUZZER_MODE)
|
add_definitions(-DBORINGSSL_UNSAFE_FUZZER_MODE)
|
||||||
|
Loading…
Reference in New Issue
Block a user