[CMAKE] Use modules instead of shared libraries
[reactos.git] / dll / apisets / CMakeLists.txt.in
index cbe9003..1a12f9e 100644 (file)
@@ -17,7 +17,7 @@ function (add_apiset apiset_name baseaddress)
         -D_WCTYPE_DEFINED
         -D_CRT_ERRNO_DEFINED)
 
-    add_library(${apiset_name} SHARED
+    add_library(${apiset_name} MODULE
         ${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}_stubs.c
         ${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}.def)
 
@@ -30,7 +30,7 @@ function (add_apiset apiset_name baseaddress)
         add_target_compile_flags(${apiset_name} "/wd4026 /wd4273")
     endif()
 
-    add_importlibs(${apiset_name} ${ARGN} kernel32 ntdll)
+    add_importlibs(${apiset_name} ${ARGN} ntdll)
 
     add_cd_file(TARGET ${apiset_name} DESTINATION reactos/winsxs/x86_reactos.apisets_6595b64144ccf1df_1.0.0.0_none_deadbeef FOR all)
 endfunction()