From c0a0d85d202843ca68dbc3cd817158a6ccfb53d5 Mon Sep 17 00:00:00 2001 From: Loïc Guilloux Date: Tue, 11 May 2021 21:43:43 +0200 Subject: Fix: [Actions] Annotations not shown for MSVC (#9247) --- cmake/CompileFlags.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmake') diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 86d336b59..2f7528fe3 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() -- cgit v1.2.3-70-g09d2