/apps/twnlua: propagate root project name for executable name

This commit is contained in:
veclavtalica 2025-01-29 03:22:04 +03:00
parent ea2bbf5de0
commit f8d7aa8a07
2 changed files with 2 additions and 1 deletions

View File

@ -305,6 +305,7 @@ function(use_townengine target sources output_directory)
endif() endif()
set_target_properties(${target} PROPERTIES set_target_properties(${target} PROPERTIES
OUTPUT_NAME ${target}
LIBRARY_OUTPUT_DIRECTORY ${output_directory} LIBRARY_OUTPUT_DIRECTORY ${output_directory}
RUNTIME_OUTPUT_DIRECTORY ${output_directory}) RUNTIME_OUTPUT_DIRECTORY ${output_directory})

View File

@ -27,4 +27,4 @@ set(SOURCE_FILES
${CMAKE_CURRENT_SOURCE_DIR}/luabind.c ${CMAKE_CURRENT_SOURCE_DIR}/luabind.c
) )
use_townengine(${PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_SOURCE_DIR}) use_townengine(${CMAKE_PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_SOURCE_DIR})