diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake index de2327a55a..6701c33f13 100644 --- a/cmake/compiler/msvc/settings.cmake +++ b/cmake/compiler/msvc/settings.cmake @@ -48,7 +48,7 @@ if("${CMAKE_MAKE_PROGRAM}" MATCHES "MSBuild") target_compile_options(trinity-compile-option-interface INTERFACE /MP) -else() +elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") # Forces writes to the PDB file to be serialized through mspdbsrv.exe (/FS) # Enable faster PDB generation in parallel builds by minimizing RPC calls to mspdbsrv.exe (/Zf) target_compile_options(trinity-compile-option-interface