use only ninja, remove sccache

This commit is contained in:
Bruno Alexandre Rosa 2026-03-14 21:16:52 -03:00
parent 61e16679f1
commit ac2533ca60
3 changed files with 34 additions and 51 deletions

View file

@ -140,15 +140,9 @@ endif()
# Define proper compilation flags
if(MSVC)
# /Z7 when using compiler launcher (sccache): avoids C1041 PDB lock with parallel cached compiles
# /Zi /FS otherwise for Ninja + /MP parallel builds
if(CMAKE_CXX_COMPILER_LAUNCHER)
set(_msvc_debug_format " /Z7")
else()
set(_msvc_debug_format " /Zi /FS")
endif()
# Disable Warning C4251, C++20 compatibility, Multi-threaded Builds, Warn Detection, Unwind Semantics, Debug Symbols
set(CMAKE_CXX_FLAGS "/wd4251 /Zc:__cplusplus /std:c++20 /permissive- /W4 /MP /EHsc${_msvc_debug_format}")
# /Zi /FS for Ninja + /MP parallel builds (FS allows multiple cl.exe to write PDB)
set(CMAKE_CXX_FLAGS "/wd4251 /Zc:__cplusplus /std:c++20 /permissive- /W4 /MP /EHsc /Zi /FS")
# Visual Studio: Maximum Optimization, Multi-threaded DLL
set(CMAKE_CXX_FLAGS_RELEASE "/Ox /MD")
# Visual Studio: No Optimization, Multi-threaded Debug DLL