From 5a8901130a6c9d2df563207abf3d0a4544bdbc92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Fri, 20 Mar 2020 10:30:33 +0000 Subject: [PATCH] [CMAKE] Fix symbol directory for non-MSVC builds --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea234693986..777a0335304 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -249,7 +249,11 @@ else() endif() # For MSVC builds, this puts all debug symbols file in the same directory. - set(CMAKE_PDB_OUTPUT_DIRECTORY "${REACTOS_BINARY_DIR}/msvc_pdb") + if (MSVC) + set(CMAKE_PDB_OUTPUT_DIRECTORY "${REACTOS_BINARY_DIR}/msvc_pdb") + elseif(SEPARATE_DBG) + set(CMAKE_PDB_OUTPUT_DIRECTORY "${REACTOS_BINARY_DIR}/symbols") + endif() #begin with boot so reactos_cab target is defined before all other modules add_subdirectory(boot)