Unsupported compiler in Qt

Hello,

I successfully built ITK5.2 libraries with gcc11, but having an issue using ITK in Qt.

I’m getting an “Unsupported compiler” error thrown by the generated include file itk_compiler_detection.h from this conditional (starting at line 153 in my build):

# if ITK_COMPILER_IS_GNU
# include “compilers/ITK_COMPILER_INFO_GNU_CXX.h”
# else
# error Unsupported compiler
# endif

And I found that the macro __clang__ was 1, and __GNUC__ was 4. But there is nothing wrong in vscode! I do not know what happened.

What are you trying to compile? Maybe provide the full compiler message, including notes?