https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5ecead80e3595d2b06e58…
commit 5ecead80e3595d2b06e589e62a01e8230e0a5d40
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat May 27 15:29:19 2023 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Fri Nov 10 19:00:41 2023 +0200
[RTL] Add object library rtl_um
---
dll/ntdll/CMakeLists.txt | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/dll/ntdll/CMakeLists.txt b/dll/ntdll/CMakeLists.txt
index 6d383bd6df4..3fee0a79ce1 100644
--- a/dll/ntdll/CMakeLists.txt
+++ b/dll/ntdll/CMakeLists.txt
@@ -17,6 +17,13 @@ include_directories(
BEFORE include
${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
+add_library(rtl_um OBJECT
+ rtl/libsupp.c
+ rtl/uilist.c
+ rtl/version.c)
+target_link_libraries(rtl_um ${PSEH_LIB})
+add_dependencies(rtl_um psdk)
+
list(APPEND SOURCE
dbg/dbgui.c
ldr/ldrapi.c
@@ -24,9 +31,6 @@ list(APPEND SOURCE
ldr/ldrpe.c
ldr/ldrutils.c
ldr/verifier.c
- rtl/libsupp.c
- rtl/uilist.c
- rtl/version.c
etw/trace.c)
if(ARCH STREQUAL "i386")
@@ -57,7 +61,7 @@ set_module_type(ntdll win32dll ENTRYPOINT 0)
set_subsystem(ntdll console)
################# END HACK #################
-target_link_libraries(ntdll csrlib rtl rtl_vista ntdllsys libcntpr uuid ${PSEH_LIB})
+target_link_libraries(ntdll csrlib rtl rtl_um rtl_vista ntdllsys libcntpr uuid
${PSEH_LIB})
if (STACK_PROTECTOR)
target_sources(ntdll PRIVATE $<TARGET_OBJECTS:gcc_ssp_nt>)