mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[CMAKE]
- handle '0' entry point in set_module_type_function svn path=/trunk/; revision=53556
This commit is contained in:
parent
fc0cfdeb05
commit
f0ecdf3eb9
1 changed files with 2 additions and 1 deletions
|
@ -264,9 +264,10 @@ function(set_module_type MODULE TYPE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# set entry point
|
# set entry point
|
||||||
if(__module_ENTRYPOINT)
|
if(__module_ENTRYPOINT OR (__module_ENTRYPOINT STREQUAL "0"))
|
||||||
list(GET __module_ENTRYPOINT 0 __entrypoint)
|
list(GET __module_ENTRYPOINT 0 __entrypoint)
|
||||||
list(LENGTH __module_ENTRYPOINT __length)
|
list(LENGTH __module_ENTRYPOINT __length)
|
||||||
|
message(STATUS "Entrypoint ${__entrypoint}, module ${MODULE}")
|
||||||
if(${__length} EQUAL 2)
|
if(${__length} EQUAL 2)
|
||||||
list(GET __module_ENTRYPOINT 1 __entrystack)
|
list(GET __module_ENTRYPOINT 1 __entrystack)
|
||||||
elseif(NOT ${__length} EQUAL 1)
|
elseif(NOT ${__length} EQUAL 1)
|
||||||
|
|
Loading…
Reference in a new issue