From: Sebastian Pipping Date: Wed, 28 Aug 2019 15:51:31 +0000 (+0200) Subject: CMake: Check C rather than C++ compiler for clang for fuzzing X-Git-Tag: R_2_2_8~33^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d608f79849ca85f3015b4f63a8f26799b836f360;p=libexpat CMake: Check C rather than C++ compiler for clang for fuzzing --- diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 502b876c..24667e6f 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -326,7 +326,7 @@ if(BUILD_tests) endif(BUILD_tests) if(BUILD_fuzzers) - if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + if(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") message(SEND_ERROR "Building fuzz targets without clang is not supported. Please set " "-DCMAKE_C_COMPILER=clang.")