mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 06:20:23 +00:00
216afc8a81
In generators such as Ninja that can run multiple "cl" processes that refer to the same compiler .pdb file (/Fd) at the same time, MSVC from Visual Studio 2013 complains: fatal error C1041: cannot open program database '.../vc120.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS According to "cl /?": /FS force to use MSPDBSRV.EXE Add the flag to compilation lines for this compiler version just after the /Fd option.
7 lines
168 B
CMake
7 lines
168 B
CMake
include(Platform/Windows-MSVC)
|
|
set(_COMPILE_CXX " /TP")
|
|
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0)
|
|
set(_FS_CXX " /FS")
|
|
endif()
|
|
__windows_compiler_msvc(CXX)
|