From 5031b613529e24e2dae88e5903e5b7f7d7e19c02 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Thu, 29 Aug 2019 00:58:26 +0200 Subject: [PATCH] CMake: Be more helpful with regard to CMAKE_C_COMPILER_ID --- expat/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 24667e6f..0a19d50b 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -328,8 +328,8 @@ endif(BUILD_tests) if(BUILD_fuzzers) 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.") + "Building fuzz targets without Clang (but ${CMAKE_C_COMPILER_ID}) " + "is not supported. Please set -DCMAKE_C_COMPILER=clang.") endif() string(FIND "${CMAKE_EXE_LINKER_FLAGS}" "-fsanitize" sanitizer_present) -- 2.40.0