summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-05-11 21:43:43 +0200
committerGitHub <noreply@github.com>2021-05-11 21:43:43 +0200
commitc0a0d85d202843ca68dbc3cd817158a6ccfb53d5 (patch)
treeff177735cc019fb18773cdca5b9ca51fabfb7a4c
parent1dfc148613a18b1b71bcc07857149d8941f1b707 (diff)
downloadopenttd-c0a0d85d202843ca68dbc3cd817158a6ccfb53d5.tar.xz
Fix: [Actions] Annotations not shown for MSVC (#9247)
-rw-r--r--cmake/CompileFlags.cmake6
1 files changed, 4 insertions, 2 deletions
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()