Stop compilation for android if application name is not set
This commit is contained in:
parent
aca5048f6f
commit
c3a859d358
1 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,9 @@ function(psemek_add_executable_impl target is_application)
|
|||
COMMAND echo Packaged target ${target} into ${_OUTPUT_PATH}
|
||||
)
|
||||
else()
|
||||
if("${PSEMEK_APPLICATION_NAME}" STREQUAL "")
|
||||
message(FATAL_ERROR "PSEMEK_APPLICATION_NAME cannot be empty when building for android")
|
||||
endif()
|
||||
add_custom_command(TARGET ${target} POST_BUILD
|
||||
COMMAND ${PSEMEK_PACKAGE_HELPER} "${target}" "${PSEMEK_APPLICATION_NAME}" "${_OUTPUT_PATH}"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue