From: Sebastian Pipping Date: Wed, 28 Aug 2019 22:58:26 +0000 (+0200) Subject: CMake: Be more helpful with regard to CMAKE_C_COMPILER_ID X-Git-Tag: R_2_2_8~33^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5031b613529e24e2dae88e5903e5b7f7d7e19c02;p=libexpat CMake: Be more helpful with regard to CMAKE_C_COMPILER_ID --- 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)