Skip to content

Commit

Permalink
feat(tools): enable MSVC parallel compilation with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrechette committed Mar 10, 2024
1 parent 33826b6 commit 4b17eb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/CMakeCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ macro(setup_default_compiler_flags _project_name)
target_compile_options(${_project_name} PRIVATE /Zi) # Add debug info
target_compile_options(${_project_name} PRIVATE /Oi) # Generate intrinsic functions
target_compile_options(${_project_name} PRIVATE /WX) # Treat warnings as errors
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC") # no Clang no Intel

if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") # no Intel
target_compile_options(${_project_name} PRIVATE /MP) # Enable parallel compilation
endif ()

Expand Down

0 comments on commit 4b17eb2

Please # to comment.