https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7f6246e6601a4e2408a8a…
commit 7f6246e6601a4e2408a8a77f45214d99b06737ff
Author: Sylvain Deverre <deverre.sylv(a)gmail.com>
AuthorDate: Sun Apr 19 12:59:54 2020 +0200
Commit: Sylvain Deverre <deverre.sylv(a)gmail.com>
CommitDate: Sun Apr 19 13:00:18 2020 +0200
[CMAKE] Fix SEPARATE_DBG build on GCC
---
sdk/cmake/gcc.cmake | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sdk/cmake/gcc.cmake b/sdk/cmake/gcc.cmake
index 7d42f327ecf..1a3be9a4ab4 100644
--- a/sdk/cmake/gcc.cmake
+++ b/sdk/cmake/gcc.cmake
@@ -194,6 +194,10 @@ if(SEPARATE_DBG)
message(STATUS "Building separate debug symbols")
file(MAKE_DIRECTORY ${REACTOS_BINARY_DIR}/symbols)
if(CMAKE_GENERATOR STREQUAL "Ninja")
+ # Those variables seems to be set but empty in newer CMake versions
+ # and Ninja generator relies on them to generate PDB name, so unset them.
+ unset(MSVC_C_ARCHITECTURE_ID)
+ unset(MSVC_CXX_ARCHITECTURE_ID)
set(CMAKE_DEBUG_SYMBOL_SUFFIX "")
set(SYMBOL_FILE <TARGET_PDB>)
else()