[CMAKE] Set KDBG define only where required (fastfat, win32k, ntoskrnl)

This commit is contained in:
Hervé Poussineau 2022-06-25 19:01:08 +02:00
parent 9e19352492
commit b6d7571ebb
4 changed files with 8 additions and 4 deletions

View File

@ -217,10 +217,6 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
add_definitions(-DDBG=0)
endif()
if(KDBG)
add_definitions(-DKDBG)
endif()
if(ENABLE_CCACHE)
message(WARNING "-- Disabling precompiled headers support (ccache).")
option(PCH "Whether to use precompiled headers" OFF)

View File

@ -24,6 +24,9 @@ list(APPEND SOURCE
volume.c
vfat.h)
if(KDBG)
add_definitions(-DKDBG)
endif()
add_library(fastfat MODULE ${SOURCE} vfatfs.rc)
set_module_type(fastfat kernelmodedriver)
target_link_libraries(fastfat ${PSEH_LIB})

View File

@ -378,6 +378,10 @@ elseif(ARCH STREQUAL "arm")
endif()
if(NOT _WINKD_)
if(KDBG)
add_definitions(-DKDBG)
endif()
if(ARCH STREQUAL "i386")
list(APPEND SOURCE
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/i386/kdbg.c)

View File

@ -226,6 +226,7 @@ list(APPEND SOURCE
endif()
if(KDBG)
add_definitions(-DKDBG)
list(APPEND SOURCE gdi/ntgdi/gdikdbgext.c)
endif()