When generating MSVC projects using CMake with a higher version and ClangCl as the compiler, the -imsvc option is replaced with /external:I as an alternative compiler option. This is due to a reported issue where Clang-Tidy cannot recognize the /external:I option but can recognize -imsvc. This results in a contradiction where -imsvc is not recognized when exporting the Compilation Database, while /external:I is accurately exported.
When generating MSVC projects using CMake with a higher version and ClangCl as the compiler, the -imsvc option is replaced with /external:I as an alternative compiler option. This is due to a reported issue where Clang-Tidy cannot recognize the /external:I option but can recognize -imsvc. This results in a contradiction where -imsvc is not recognized when exporting the Compilation Database, while /external:I is accurately exported.