- handle '0' entry point in set_module_type_function

svn path=/trunk/; revision=53556
This commit is contained in:
Jérôme Gardou 2011-09-03 18:24:38 +00:00
parent fc0cfdeb05
commit f0ecdf3eb9

View file

@ -264,9 +264,10 @@ function(set_module_type MODULE TYPE)
endif()
# set entry point
if(__module_ENTRYPOINT)
if(__module_ENTRYPOINT OR (__module_ENTRYPOINT STREQUAL "0"))
list(GET __module_ENTRYPOINT 0 __entrypoint)
list(LENGTH __module_ENTRYPOINT __length)
message(STATUS "Entrypoint ${__entrypoint}, module ${MODULE}")
if(${__length} EQUAL 2)
list(GET __module_ENTRYPOINT 1 __entrystack)
elseif(NOT ${__length} EQUAL 1)