Use set_module_type() with module type == "module" instead of specifying that the entrypoint is 0, for resource-only dlls.

svn path=/trunk/; revision=72841
This commit is contained in:
Hermès Bélusca-Maïto 2016-09-28 20:21:31 +00:00
parent 0140e3bf68
commit 9c77bd1cb7
4 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,6 @@
include_directories(${REACTOS_BINARY_DIR}/sdk/include/reactos)
add_library(iologmsg SHARED iologmsg.rc)
set_module_type(iologmsg win32dll ENTRYPOINT 0 UNICODE)
set_module_type(iologmsg module UNICODE)
add_dependencies(iologmsg ntiologc)
add_cd_file(TARGET iologmsg DESTINATION reactos/system32 FOR all)

View file

@ -1,6 +1,6 @@
include_directories(${REACTOS_BINARY_DIR}/sdk/include/reactos)
add_library(netevent SHARED netevt.rc)
set_module_type(netevent win32dll UNICODE ENTRYPOINT 0)
set_module_type(netevent module UNICODE)
add_dependencies(netevent neteventmsg)
add_cd_file(TARGET netevent DESTINATION reactos/system32 FOR all)

View file

@ -20,9 +20,8 @@ add_library(kdcom SHARED
kdgdb.rc
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
set_entrypoint(kdcom 0)
set_module_type(kdcom module IMAGEBASE 0x00010000)
set_subsystem(kdcom native)
set_image_base(kdcom 0x00010000)
add_importlibs(kdcom ntoskrnl hal)
target_link_libraries(kdcom cportlib)
add_pch(kdcom kdgdb.h SOURCE)

View file

@ -2,5 +2,5 @@
file(GLOB pifmgr_rc_deps "res/*.*" "res_alt/*.*")
add_rc_deps(pifmgr.rc ${pifmgr_rc_deps})
add_library(pifmgr SHARED pifmgr.rc)
set_module_type(pifmgr win32dll UNICODE ENTRYPOINT 0)
set_module_type(pifmgr module UNICODE)
add_cd_file(TARGET pifmgr DESTINATION reactos/system32 FOR all)