CMake: PDBs outside of Binaries

This commit is contained in:
Joshua Vandaële 2025-12-10 23:40:33 +01:00
parent 6402195f01
commit b397cb4b93
No known key found for this signature in database
GPG Key ID: 6BB95AF71EB0F406

View File

@ -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)