Changeset - r25437:0fab37ba7fa3
[Not reviewed]
master
0 1 0
Loïc Guilloux - 3 years ago 2021-05-11 19:43:43
glx22@users.noreply.github.com
Fix: [Actions] Annotations not shown for MSVC (#9247)
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
cmake/CompileFlags.cmake
Show inline comments
 
@@ -23,14 +23,16 @@ macro(compile_flags)
 

	
 
        # "If /Zc:rvalueCast is specified, the compiler follows section 5.4 of the
 
        # C++11 standard". We need C++11 for the way we use threads.
 
        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()
 

	
 
    # Add some -D flags for Debug builds. We cannot use add_definitions(), because
 
    # it does not appear to support the $<> tags.
 
    add_compile_options(
0 comments (0 inline, 0 general)