https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9e193524925254650b1a2…
commit 9e193524925254650b1a28253680b52ad44eb852
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Jun 25 18:44:37 2022 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Sat Sep 10 23:16:26 2022 +0200
[CMAKE] Set _WINKD_ define only where required (kernel and setuplib)
---
CMakeLists.txt | 4 ----
base/setup/lib/CMakeLists.txt | 3 +++
ntoskrnl/ntos.cmake | 2 ++
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63353f0c58b..a1e95dfd5b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -221,10 +221,6 @@ Enable this if the module uses typeid or dynamic_cast. You will
probably need to
add_definitions(-DKDBG)
endif()
- if(_WINKD_)
- add_definitions(-D_WINKD_)
- endif()
-
if(ENABLE_CCACHE)
message(WARNING "-- Disabling precompiled headers support (ccache).")
option(PCH "Whether to use precompiled headers" OFF)
diff --git a/base/setup/lib/CMakeLists.txt b/base/setup/lib/CMakeLists.txt
index a79bebf4940..cc79ec83ef8 100644
--- a/base/setup/lib/CMakeLists.txt
+++ b/base/setup/lib/CMakeLists.txt
@@ -1,5 +1,8 @@
add_definitions(${I18N_DEFS})
+if(_WINKD_)
+ add_definitions(-D_WINKD_)
+endif()
include_directories(spapisup utils)
diff --git a/ntoskrnl/ntos.cmake b/ntoskrnl/ntos.cmake
index af8217bc480..0c666cfeb8f 100644
--- a/ntoskrnl/ntos.cmake
+++ b/ntoskrnl/ntos.cmake
@@ -411,4 +411,6 @@ if(NOT _WINKD_)
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdio.c
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdmain.c)
+else()
+ add_definitions(-D_WINKD_)
endif()