From c0a0d85d202843ca68dbc3cd817158a6ccfb53d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Tue, 11 May 2021 21:43:43 +0200 Subject: [PATCH] Fix: [Actions] Annotations not shown for MSVC (#9247) --- cmake/CompileFlags.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 86d336b595..2f7528fe3c 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -26,8 +26,10 @@ macro(compile_flags) add_compile_options(/Zc:rvalueCast) if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - # Enable multi-threaded compilation. - add_compile_options(/MP) + add_compile_options( + /MP # Enable multi-threaded compilation. + /FC # Display the full path of source code files passed to the compiler in diagnostics. + ) endif() endif()