From b397cb4b93376fb9261d6b8e53ffa5238ff8bc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Wed, 10 Dec 2025 23:40:33 +0100 Subject: [PATCH] CMake: PDBs outside of Binaries --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2711a222a6..7d390ca9a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,6 +194,10 @@ if (WIN32) endif() endif() +# Output directory for PDB files. PDBs are only generated on Windows with MSVC. +# We set a common directory for all PDBs to avoid littering the Binaries/ directory. +set(CMAKE_PDB_OUTPUT_DIRECTORY $<1:${CMAKE_BINARY_DIR}/pdb>) + # setup CCache include(CCache)