From 1c7f3476a0c7febaa573e2e35ecbbc5efb354e01 Mon Sep 17 00:00:00 2001 From: Victor Perevertkin Date: Mon, 28 Jun 2021 17:54:09 +0300 Subject: [PATCH] [CMAKE] Use BUILD_MP CMake option correctly --- ntoskrnl/CMakeLists.txt | 2 +- sdk/cmake/config.cmake | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ntoskrnl/CMakeLists.txt b/ntoskrnl/CMakeLists.txt index 31970629c76..6849bcf0099 100644 --- a/ntoskrnl/CMakeLists.txt +++ b/ntoskrnl/CMakeLists.txt @@ -64,7 +64,7 @@ add_pch(ntoskrnl ${REACTOS_SOURCE_DIR}/ntoskrnl/include/ntoskrnl.h "${PCH_SKIP_S add_dependencies(ntoskrnl psdk asm) add_cd_file(TARGET ntoskrnl DESTINATION reactos/system32 NO_CAB FOR all) -if(BUILD_MP OR (ARCH STREQUAL "amd64")) +if(BUILD_MP) add_subdirectory(ntkrnlmp) endif() diff --git a/sdk/cmake/config.cmake b/sdk/cmake/config.cmake index 84e032f045a..63e5d71f0dd 100644 --- a/sdk/cmake/config.cmake +++ b/sdk/cmake/config.cmake @@ -97,8 +97,7 @@ else() set(_WINKD_ FALSE CACHE BOOL "Whether to compile with the KD protocol.") endif() -cmake_dependent_option(BUILD_MP "Whether to build the multiprocessor versions of NTOSKRNL and HAL." ON - "ARCH STREQUAL i386" OFF) +option(BUILD_MP "Whether to build the multiprocessor versions of NTOSKRNL and HAL." ON) cmake_dependent_option(ISAPNP_ENABLE "Whether to enable the ISA PnP support." ON "ARCH STREQUAL i386 AND NOT SARCH STREQUAL xbox" OFF)