From 9cc4d8994bb471d5e6aa1de6308bbf4a5015e479 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 28 Oct 2023 22:20:36 +0300 Subject: [PATCH] [CMAKE] Use baseaddress64.cmake for all 64 bit builds - Rename baseaddress_msvc_x64.cmake to baseaddress64.cmake - Include it for all compilers and 64 bit architectures --- CMakeLists.txt | 10 ++++------ ...{baseaddress_msvc_x64.cmake => baseaddress64.cmake} | 0 2 files changed, 4 insertions(+), 6 deletions(-) rename sdk/cmake/{baseaddress_msvc_x64.cmake => baseaddress64.cmake} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12dd07e5085..3583b78b894 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -336,14 +336,12 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to add_subdirectory(sdk/include/reactos/mc) add_subdirectory(sdk/include/asm) - if(NO_ROSSYM) + if(ARCH MATCHES "64$") + include(sdk/cmake/baseaddress64.cmake) + elseif(NO_ROSSYM) include(sdk/cmake/baseaddress_dwarf.cmake) elseif(MSVC) - if (ARCH STREQUAL "amd64") - include(sdk/cmake/baseaddress_msvc_x64.cmake) - else() - include(sdk/cmake/baseaddress_msvc.cmake) - endif() + include(sdk/cmake/baseaddress_msvc.cmake) else() include(sdk/cmake/baseaddress.cmake) endif() diff --git a/sdk/cmake/baseaddress_msvc_x64.cmake b/sdk/cmake/baseaddress64.cmake similarity index 100% rename from sdk/cmake/baseaddress_msvc_x64.cmake rename to sdk/cmake/baseaddress64.cmake